[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.

Re: [systemd-devel] Restarting sshd

2011-01-11 Thread Miklos Vajna
On Tue, Jan 11, 2011 at 02:12:13PM +0500, Alexander E. Patrakov patra...@gmail.com 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

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] 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

Re: [systemd-devel] Restarting sshd

2011-01-11 Thread Miklos Vajna
On Tue, Jan 11, 2011 at 03:34:47PM +0500, Alexander E. Patrakov patra...@gmail.com 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

Re: [systemd-devel] Restarting sshd

2011-01-11 Thread Gustavo Sverzut Barbieri
On Tue, Jan 11, 2011 at 7:12 AM, Alexander E. Patrakov patra...@gmail.com 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

[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] 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

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 lighttpd-angel when the

[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 +++

[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,

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

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

2011-01-11 Thread Alexander E. Patrakov
11.01.2011 21:11, Mirco Tischler wrote: a patch 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)

Re: [systemd-devel] libnotify

2011-01-11 Thread Kay Sievers
On Tue, Jan 11, 2011 at 18:21, Wiliam Souza wil...@mandriva.com 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