[Bug 47980] udp2log logs are recreated as root:root preventing logging

2013-05-02 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=47980

--- Comment #1 from Antoine hashar Musso has...@free.fr ---
As root, I could not change the ownership of a log file on the NFS share:

 $ sudo touch /data/project/logs/logrotatetest.log
 $ ls -l /data/project/logs/logrotatetest.log
 $ -rw-rw-r-- 1 root root 0 May  2 08:49 /data/project/logs/logrotatetest.log
 $ sudo chown udp2log:udp2log logrotatetest.log 
 chown: changing ownership of `logrotatetest.log': Invalid argument
 $


`copytruncate` would solve that since the file is copied and then its content
removed. But that would mean losing some logs sent between the two operations,
I dont think this is acceptable for production.


`nocreate` would not attempt to recreate the log files. That would only work if
HUP signal sent to udp2log actually recreate the file. I believe that is the
case since when the files are rotated and recreated by log rotated, the inode
changed and thus udp2log must be reopening them, possibly recreating it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 47980] udp2log logs are recreated as root:root preventing logging

2013-05-02 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=47980

--- Comment #2 from Gerrit Notification Bot gerritad...@wikimedia.org ---
Related URL: https://gerrit.wikimedia.org/r/61964 (Gerrit Change
I048c6914b6bf7c93cc7d98658391ba90d388ff4b)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l