2016-04-18 12:00:14 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Log2Ram
|
2017-04-11 20:24:21 +03:00
|
|
|
DefaultDependencies=no
|
2019-03-09 14:43:41 +00:00
|
|
|
Before=basic.target rsyslog.service syslog.target systemd-journald.service sysinit.target shutdown.target zram-swap-conf.service apache2.service
|
2019-03-09 04:55:45 +00:00
|
|
|
After=local-fs.target
|
2019-03-09 03:24:27 +00:00
|
|
|
Conflicts=shutdown.target reboot.target halt.target
|
2017-10-09 13:33:20 +02:00
|
|
|
RequiresMountsFor=/var/log /var/hdd.log
|
2019-03-09 04:55:45 +00:00
|
|
|
IgnoreOnIsolate=yes
|
2016-04-18 12:00:14 +02:00
|
|
|
|
|
|
|
[Service]
|
2016-10-20 12:41:47 +02:00
|
|
|
Type=oneshot
|
2016-04-18 12:04:19 +02:00
|
|
|
ExecStart= /usr/local/bin/log2ram start
|
|
|
|
ExecStop= /usr/local/bin/log2ram stop
|
|
|
|
ExecReload= /usr/local/bin/log2ram write
|
2018-07-18 21:24:43 +02:00
|
|
|
TimeoutStartSec=120
|
2016-04-18 12:00:14 +02:00
|
|
|
RemainAfterExit=yes
|
|
|
|
|
|
|
|
[Install]
|
2017-04-11 20:24:21 +03:00
|
|
|
WantedBy=sysinit.target
|