Unite systemd
This commit is contained in:
parent
860250b087
commit
c60c145acc
|
@ -16,6 +16,24 @@ $ wget http://pub.evolix.net/stretch/log2mail_0.3.0-2_amd64.deb
|
||||||
# dpkg -i log2mail_0.3.0-2_amd64.deb
|
# dpkg -i log2mail_0.3.0-2_amd64.deb
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
Ce paquet log2mail ne fournit pas encore d'unité systemd, on pourra créer l'unité suivante dans /etc/systemd/system/log2mail.service :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
[Unit]
|
||||||
|
Description=Daemon watching logfiles and mailing lines matching patterns
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
ExecStart=/usr/sbin/log2mail -- -f /etc/log2mail/config
|
||||||
|
KillMode=control-group
|
||||||
|
Restart=always
|
||||||
|
User=log2mail
|
||||||
|
Group=adm
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
~~~
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue