Re: [systemd-devel] libnotify

2011-01-11 Thread Kay Sievers
On Tue, Jan 11, 2011 at 18:21, Wiliam Souza wrote: > Can you guys tell how is that 'touch'? > Henry, what you have changed in src/gnome-ask-passwd-agent.vala? > Kay, what you do in your specs? find . -name "*.[1-8]" -exec touch '{}' \; touch src/systemadm.c Kay __

Re: [systemd-devel] libnotify

2011-01-11 Thread Henry Gebhardt
On Tue, Jan 11, 2011 at 03:21:58PM -0200, Wiliam Souza wrote: > On 01/11/2011 02:22 PM, Kay Sievers wrote: > Can you guys tell how is that 'touch'? > Henry, what you have changed in src/gnome-ask-passwd-agent.vala? I changed nothing in that file. I executed $ touch src/gnome-ask-passwd-agent

Re: [systemd-devel] libnotify

2011-01-11 Thread Wiliam Souza
On 01/11/2011 02:22 PM, Kay Sievers wrote: On Tue, Jan 11, 2011 at 17:14, Henry Gebhardt wrote: On Tue, Jan 11, 2011 at 01:28:47PM +0100, Kay Sievers wrote: On Tue, Jan 11, 2011 at 13:24, Wiliam Souza wrote: Why I can't compile systemd-16.tar.bz2 with libnotify 0.5.2 whereas git HEAD builds

Re: [systemd-devel] [PATCH] ExecConfigTest first try

2011-01-11 Thread Alexander E. Patrakov
11.01.2011 21:11, Mirco Tischler wrote: Sorry, this doesn't work as expected. To reproduce the problem: 1) Start a service with a good config 2) Edit the config. Make a typo. 3) Attempt to reload the service. At this point, systemd will put the whole service into a "failed" state. 4) Fix the

Re: [systemd-devel] libnotify

2011-01-11 Thread Wiliam Souza
On 01/11/2011 10:28 AM, Kay Sievers wrote: On Tue, Jan 11, 2011 at 13:24, Wiliam Souza wrote: Why I can't compile systemd-16.tar.bz2 with libnotify 0.5.2 whereas git HEAD builds fine? I got an error compiling systemd-16 with 0.5.2 src/gnome-ask-password-agent.c:558:2: error: too few arguments t

Re: [systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

2011-01-11 Thread Marius Tolzmann
hi.. On 01/11/11 16:11, Alexander E. Patrakov wrote: When the config is bad and the additional ExecReload line is present, systemd does tell me that reload failed. So I have a good reason to check syslog, and even am suggested by systemd to do so. sorry my fault 8).. i thought it was silentl

Re: [systemd-devel] libnotify

2011-01-11 Thread Kay Sievers
On Tue, Jan 11, 2011 at 17:14, Henry Gebhardt wrote: > On Tue, Jan 11, 2011 at 01:28:47PM +0100, Kay Sievers wrote: >> On Tue, Jan 11, 2011 at 13:24, Wiliam Souza wrote: >> > Why I can't compile systemd-16.tar.bz2 with libnotify 0.5.2 whereas git >> > HEAD >> > builds fine? >> > I got an error c

Re: [systemd-devel] libnotify

2011-01-11 Thread Henry Gebhardt
On Tue, Jan 11, 2011 at 01:28:47PM +0100, Kay Sievers wrote: > On Tue, Jan 11, 2011 at 13:24, Wiliam Souza wrote: > > Why I can't compile systemd-16.tar.bz2 with libnotify 0.5.2 whereas git HEAD > > builds fine? > > I got an error compiling systemd-16 with 0.5.2 > > src/gnome-ask-password-agent.c:

[systemd-devel] [PATCH] ExecConfigTest first try

2011-01-11 Thread Mirco Tischler
diff --git a/src/load-fragment.c b/src/load-fragment.c index 261180d..b268f81 100644 --- a/src/load-fragment.c +++ b/src/load-fragment.c @@ -1853,6 +1853,7 @@ static int load_from_path(Unit *u, const char *path) { { "ExecReload", config_parse_exec, u->servic

[systemd-devel] [PATCH] service: ExecConfigTest command to test config before startup/restart/reloading of service.

2011-01-11 Thread Mirco Tischler
The ExecConfigTest command is trigerred before each ExecStart/Pre, ExecReload and ExecRestart command and the execution of those commands is denied when the ExecConfigTest fails. --- src/load-fragment.c |1 + src/service.c | 52 +++ src/s

Re: [systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

2011-01-11 Thread Mirco Tischler
Am 11.01.2011 16:11, schrieb Alexander E. Patrakov: >> Also, the "test config before reloading" feature still doesn't work >>> right. If I add this ExecReload line before the existing one: >>> >>> ExecReload=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf >>> >>> then systemd will kill lighttp

Re: [systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

2011-01-11 Thread Alexander E. Patrakov
11.01.2011 19:46, Marius Tolzmann wrote: hi again.. On 01/11/11 11:51, Alexander E. Patrakov wrote: If you also want graceful stop, you may want to add: ExecStop=/bin/kill -INT $MAINPID but this doesn't work, as lighttpd gets killed immediately. I don't know why this happens. have you tri

Re: [systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

2011-01-11 Thread Marius Tolzmann
hi again.. On 01/11/11 11:51, Alexander E. Patrakov wrote: After more research, I found the under-documented lighttpd-angel program. It does what is needed for babysitting lighttpd: performs the "send SIGINT to the old copy and immediately start the new one" dance when it receives SIGHUP. See h

Re: [systemd-devel] libnotify

2011-01-11 Thread Kay Sievers
On Tue, Jan 11, 2011 at 13:24, Wiliam Souza wrote: > Why I can't compile systemd-16.tar.bz2 with libnotify 0.5.2 whereas git HEAD > builds fine? > I got an error compiling systemd-16 with 0.5.2 > src/gnome-ask-password-agent.c:558:2: error: too few arguments to function > ‘notify_notification_new’

[systemd-devel] libnotify

2011-01-11 Thread Wiliam Souza
Hello, Why I can't compile systemd-16.tar.bz2 with libnotify 0.5.2 whereas git HEAD builds fine? I got an error compiling systemd-16 with 0.5.2 src/gnome-ask-password-agent.c:558:2: error: too few arguments to function ‘notify_notification_new’. ___

Re: [systemd-devel] Restarting sshd

2011-01-11 Thread Gustavo Sverzut Barbieri
On Tue, Jan 11, 2011 at 7:12 AM, Alexander E. Patrakov wrote: ... > ExecReload=/bin/kill -HUP $MAINPID This becoming a common case, shouldn't we have a ExecReloadSignal=HUP, or SignalReload=HUP? -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -

Re: [systemd-devel] Restarting sshd

2011-01-11 Thread Miklos Vajna
On Tue, Jan 11, 2011 at 03:34:47PM +0500, "Alexander E. Patrakov" wrote: > 11.01.2011 15:24, Miklos Vajna wrote: > > Is there any chance this could be sumitted to the maintainers of the > > portable openssh? Having a different version for each distro is not > > something we want for sure. > >

Re: [systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

2011-01-11 Thread Alexander E. Patrakov
10.01.2011 22:49, Marius Tolzmann wrote: hi.. can the initial problem of restarting the lighttpd gracefully be solved by something like this?: Restart=on-success ( or on-abort or always .. don't know what the exit-status after graceful kill is in lighty) After more research, I found the und

Re: [systemd-devel] Restarting sshd

2011-01-11 Thread Alexander E. Patrakov
11.01.2011 15:24, Miklos Vajna wrote: Is there any chance this could be sumitted to the maintainers of the portable openssh? Having a different version for each distro is not something we want for sure. Sorry, I am afraid I won't manage it. Is there any existing success story of service file

Re: [systemd-devel] Restarting sshd

2011-01-11 Thread Miklos Vajna
On Tue, Jan 11, 2011 at 02:12:13PM +0500, "Alexander E. Patrakov" wrote: > sshd.service has the following problem, which is a regression from a > traditional SysV setup and which is not present in sshd.socket + > s...@.service. Yes, I know that the use of this service is discouraged. > > The p

[systemd-devel] Restarting sshd

2011-01-11 Thread Alexander E. Patrakov
Hello. I have sshd-related unit files from http://0pointer.de/public/systemd-units/ sshd.service has the following problem, which is a regression from a traditional SysV setup and which is not present in sshd.socket + s...@.service. Yes, I know that the use of this service is discouraged. Th