unité systemd

This commit is contained in:
Benoît S. 2019-07-23 10:07:11 +02:00
parent 4b6ba0d288
commit ec6c2f3454

View file

@ -116,7 +116,21 @@ Apr 23 18:26:28 lb02 vrrpd->lan[57143]: Starting (adver_int: 10000000, vrid: 42,
Apr 23 18:26:28 lb02 vrrpd->lan[57143]: VRRP ID 42 on eth0 (prio: 90) : we are now a backup router. Apr 23 18:26:28 lb02 vrrpd->lan[57143]: VRRP ID 42 on eth0 (prio: 90) : we are now a backup router.
~~~ ~~~
Le démon n'a pas de script d'init, on rajoute la ligne de commande ci-dessus directement dans le fichier */etc/rc.local*. On pourra utiliser une unité systemd pour start/stop le démon.
~~~
[Unit]
Description=VRRP Daemon
After=network.target
[Service]
ExecStart=/usr/sbin/vrrpd -i eth0 -x -D -d 10 -v 42 -p 90 -a pw/0xPASSWORD -l foo 192.0.2.42/27
Type=forking
[Install]
WantedBy=default.target
~~~
## Logs ## Logs