1
0
mirror of https://github.com/azlux/log2ram synced 2024-12-03 10:33:41 +00:00
log2ram/log2ram.service

21 lines
626 B
Desktop File

[Unit]
Description=Log2Ram
DefaultDependencies=no
Before=basic.target rsyslog.service syslog-ng.service syslog.target systemd-journald.service sysinit.target shutdown.target zram-swap-conf.service apache2.service lighttpd.service
After=local-fs.target
Conflicts=shutdown.target reboot.target halt.target
RequiresMountsFor=/var/log /var/hdd.log
IgnoreOnIsolate=yes
Documentation=https://github.com/azlux/log2ram
[Service]
Type=oneshot
ExecStart=/usr/local/bin/log2ram start
ExecStop=/usr/local/bin/log2ram stop
ExecReload=/usr/local/bin/log2ram write
TimeoutStartSec=120
RemainAfterExit=yes
[Install]
WantedBy=sysinit.target