Unite systemd
Cette révision appartient à :
Parent
860250b087
révision
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
|
||||
~~~
|
||||
|
||||
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
|
||||
|
||||
|
|
Chargement…
Référencer dans un nouveau ticket