Mailinglist Archive: opensuse (1658 mails)
| < Previous | Next > |
Re: [opensuse] Re: [opensuse-factory] equivalent to boot.local for systemd
- From: Cristian Rodríguez <crrodriguez@xxxxxxxxxxxx>
- Date: Wed, 07 Dec 2011 00:42:18 -0300
- Message-id: <4EDEE09A.4070200@opensuse.org>
On 07/12/11 00:33, James Knott wrote:
[Unit]
Description=My 6to4 tunnel
After=network.target
[Service]
Type=oneshot
ExecStart=/path/to/script/starting_the_tunnel.sh
[Install]
WantedBy=multi-user.target
Aint that cute ? ;-)
we want to know what things are needed and the system is not doing properly by default.
Yeah, but it follows cron daemon bootup order.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx
Andreas Jaeger wrote:
So far putting these into boot.local works fine, but my reading ofYou can create separate service for these, there shouldn't be a
> boot.local's use suggests it might be executed at most any point in
> the boot process, and after.local's used to be executed after the run
> level was reached.
problem...
So, what is the proper replacement for things that must be started after
the system is up & running? On my firewall, I use after.local to start a
6in4 tunnel after booting, as it requires the network to be up first.
[Unit]
Description=My 6to4 tunnel
After=network.target
[Service]
Type=oneshot
ExecStart=/path/to/script/starting_the_tunnel.sh
[Install]
WantedBy=multi-user.target
Aint that cute ? ;-)
There are other things that I have used after.local for, to ensure
something started in a stable system.
we want to know what things are needed and the system is not doing properly by default.
Does the crontab @reboot still
work?
Yeah, but it follows cron daemon bootup order.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx
| < Previous | Next > |