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

2015-06-10 Thread Lennart Poettering
On Wed, 10.06.15 09:52, Christoph Pleger (christoph.ple...@cs.tu-dortmund.de) wrote: > 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: > >>

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 ke

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

[systemd-devel] Calling shutdown while executing a service

2015-06-02 Thread Christoph Pleger
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 depends on one new service. The service is defined by: [Unit] Description=LOCAL Requires=multi-use