Commit Graph

5 Commits

Author SHA1 Message Date
zador-blood-stained 01632f9cb1 Update service dependencies to start on early boot
This changes log2ram dependencies to start as early as possible, before other
services that may require access to /var/log, including rsyslog and
systemd-journald.

Additional dependencies on shutdown.target are required to ensure that
the service will be stopped at shutdown/reboot when DefaultDependencies
is set to "no" [1].

RequiresMountsFor declares dependency on /var mount when it is a mount point.

IgnoreOnIsolate prevents stopping the service when isolating another unit.

[1]: https://www.freedesktop.org/software/systemd/man/systemd.service.html
2017-04-11 20:47:02 +03:00
azlux 83be051ed8 oneshot add
From @datenklause
With Type=oneshot, systemd waits until the start action has completed
before it considers the unit to be active, so dependencies start only
after the start action has succeeded. With Type=simple, dependencies
will start immediately after the start action has been dispatched.
2016-10-20 12:41:47 +02:00
Sailing74 5235641f44 Move "Before" to "[Unit]"
This tweak is required to make it run under Ubuntu 16.04
2016-07-30 16:41:58 +02:00
azlux 3b40e22315 change name 2016-04-18 12:04:19 +02:00
azlux 9cc827110d Create log2ram.service 2016-04-18 12:00:14 +02:00