1
0
mirror of https://github.com/azlux/log2ram.git synced 2023-10-10 13:37:24 +02:00
log2ram/log2ram.service
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

14 lines
310 B
Desktop File

[Unit]
Description=Log2Ram
Before=syslog.target mysql.service fail2ban.service nginx.service rsyslog.service
[Service]
Type=oneshot
ExecStart= /usr/local/bin/log2ram start
ExecStop= /usr/local/bin/log2ram stop
ExecReload= /usr/local/bin/log2ram write
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target