Package: x2gobroker-authservice Version: 0.0.1.0-0~334~precise1
When x2gobroker-authservice starts, it creates four files in /var/log/x2gobroker: access.log, authservice.log, broker.log and error.log (if they do not already exist). Because x2gobroker-authservice is running as root, these files will be owned by root and have permission mode 644. This makes them unwriteable to anybody but root. When x2gobroker-daemon starts it will attempt to open at least /var/log/x2gobroker/broker.log, but since x2gobroker-daemon runs as the user x2gobroker, it can't open that file in write-mode. This makes the daemon exit without any error messages when started by the init-system. It might be best to make x2gobroker-authservice keep to it's own set of log-files to avoid this problem. A work-around is to chown ownership of the files to the user x2gobroker.
-- Anders Bruun Olsen It-ansvarlig Det Danske Sprog- og Litteraturselskab (Society for Danish Language and Literature)
tag #172 pending fixed #172 0.0.1.1 thanks
Hi Anders,
On Mi 17 Apr 2013 15:03:38 CEST Anders Bruun Olsen wrote:
Package: x2gobroker-authservice Version: 0.0.1.0-0~334~precise1
When x2gobroker-authservice starts, it creates four files in /var/log/x2gobroker: access.log, authservice.log, broker.log and error.log (if they do not already exist). Because x2gobroker-authservice is running as root, these files will be owned by root and have permission mode 644. This makes them unwriteable to anybody but root. When x2gobroker-daemon starts it will attempt to open at least /var/log/x2gobroker/broker.log, but since x2gobroker-daemon runs as the user x2gobroker, it can't open that file in write-mode. This makes the daemon exit without any error messages when started by the init-system. It might be best to make x2gobroker-authservice keep to it's own set of log-files to avoid this problem. A work-around is to chown ownership of the files to the user x2gobroker.
This commit should draw a separation line between
x2gobroker-authservice logging and the logging of the broker daemon:
http://code.x2go.org/gitweb?p=x2gobroker.git;a=commitdiff;h=620140e5cc38e3f8...
Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, rothenstein 5, 24214 neudorf-bornstein fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Processing commands for control@bugs.x2go.org:
tag #172 pending Bug #172 [x2gobroker-authservice] x2gobroker-authservice creates logfiles that x2gobroker-daemon can not access Added tag(s) pending. fixed #172 0.0.1.1 Bug #172 [x2gobroker-authservice] x2gobroker-authservice creates logfiles that x2gobroker-daemon can not access There is no source info for the package 'x2gobroker-authservice' at version '0.0.1.1' with architecture '' Unable to make a source version for version '0.0.1.1' Marked as fixed in versions 0.0.1.1. thanks Stopping processing here.
172: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=172 X2Go Bug Tracking System Contact owner@bugs.x2go.org with problems