Re: [systemd-devel] Calling shutdown while executing a service

2015-06-10 Thread Christoph Pleger
Hello, /usr/local/sbin/local is a bash script which calls several functions. When one of these functions fails, i.e. returns another value than zero, the script calls this function: die() { STRING=$1 echo 2 Error occured in function ${STRING} echo Press any key to reboot (sorry for

Re: [systemd-devel] Calling shutdown while executing a service

2015-06-09 Thread Lennart Poettering
On Tue, 02.06.15 16:19, Christoph Pleger (christoph.ple...@cs.tu-dortmund.de) wrote: Hello, I created a new target, defined by this target file: [Unit] Description=LOCAL Requires=multi-user.target After=multi-user.target Conflicts=rescue.target AllowIsolate=yes The new target only