Re: Insert a script into systemd boot order at a specific location

2015-03-16 Thread Michael Biebl
Am 16.03.2015 um 13:54 schrieb Christoph Pleger: > Hello, > >> What you probably want, is hook into basic.target or sysinit.target, use >> DefaultDependencies=no, and specify the dependencies/orderings >> explicitly. > > a post from debian-user-ger...@lists.debian.org helped me further: I do > no

Re: Insert a script into systemd boot order at a specific location

2015-03-16 Thread Christoph Pleger
Hello, > What you probably want, is hook into basic.target or sysinit.target, use > DefaultDependencies=no, and specify the dependencies/orderings > explicitly. a post from debian-user-ger...@lists.debian.org helped me further: I do not have to change anything, just calling update-rc.d for my ini

Re: Insert a script into systemd boot order at a specific location

2015-03-13 Thread Michael Biebl
Am 2015-03-13 16:03, schrieb Christoph Pleger: [Unit] Description=Installation and configuration Requires=basic.target Before=multi-user.target After=basic.target [Install] RequiredBy=multi-user.target Then, I called systemctl to set the correct symlinks for script.target and script.service.

Re: Insert a script into systemd boot order at a specific location

2015-03-13 Thread David Wright
Quoting Christoph Pleger (christoph.ple...@cs.tu-dortmund.de): > Hello, > > > According to > > http://www.freedesktop.org/software/systemd/man/systemd.unit.html you > > can specify "After=" and "Before=" in order to force your unit to start > > in a specified position. The documentation suggests t

Re: Insert a script into systemd boot order at a specific location

2015-03-13 Thread Christoph Pleger
Hello, > According to > http://www.freedesktop.org/software/systemd/man/systemd.unit.html you > can specify "After=" and "Before=" in order to force your unit to start > in a specified position. The documentation suggests that you typically > list your "After=" units also in "Requires=" so that st

Re: Insert a script into systemd boot order at a specific location

2015-03-13 Thread Darac Marjal
On Fri, Mar 13, 2015 at 09:20:53AM +0100, Christoph Pleger wrote: > Hello, > > for many years and up to Debian 7, I am using update-rc.d to define a > specific location in the boot order, where a script is executed which > automatically performs some administrative tasks. The script is executed >

Insert a script into systemd boot order at a specific location

2015-03-13 Thread Christoph Pleger
Hello, for many years and up to Debian 7, I am using update-rc.d to define a specific location in the boot order, where a script is executed which automatically performs some administrative tasks. The script is executed after only very basic tasks have been performed, and before all other tasks. T