https://bugzilla.novell.com/show_bug.cgi?id=809823 https://bugzilla.novell.com/show_bug.cgi?id=809823#c0 Summary: systemd "service start" immediately followed by "service stop" if no process running Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: Ralf.Friedl@online.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Win98; de-AT; rv:1.8.1.24) Gecko/20100228 SeaMonkey/1.1.19 Actually, system is openSUSE 12.3, but that is not (yet) available from the Operating System selection box. I have created an init script that executes some commands, but doesn't leave a process running. When it is started, whether by "systemctl start local.service" or "/etc/init.d/local start" (which calls systemctl), systemd executes "/etc/init.d/local start" with SYSTEMD_NO_WRAP set. The script is executed and return status 0 for success. So far everything is well. The problem is that now systemd immediately executed "/etc/init.d/local stop". But the stop action undoes the effects of the start action and is only meant to be called at shutdown. This used to work with the original openSUSE 12.2, but no longer after some updates to systemd. Reproducible: Always Steps to Reproduce: 1. Create startup script /etc/init.d/local that doesn't leave process running. 2. Call systemctl to have systemd execute the script. Actual Results: systemd calls "/etc/init.d/local start". The script exits with status 0. systemd calls "/etc/init.d/local stop". Expected Results: systemd calls "/etc/init.d/local start". The script exits with status 0. systemd doesn't call "/etc/init.d/local stop" until system shutdown. I verified that it is really not leaving a running progress by adding this line: ( sleep 999999 & ) Now everything works as expected, except when I kill the sleep process (or it dies for other reasons), systemd will execute the stop action of the script. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.