mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

The bug is: after the service stopped,the pid file still exists. So modidy the service files. Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
17 lines
449 B
Desktop File
17 lines
449 B
Desktop File
[Unit]
|
|
Description=OSPF routing daemon
|
|
BindTo=zebra.service
|
|
After=zebra.service
|
|
ConditionPathExists=@SYSCONFDIR@/quagga/ospfd.conf
|
|
|
|
[Service]
|
|
Type=forking
|
|
EnvironmentFile=-@SYSCONFDIR@/default/quagga
|
|
PIDFile=@localstatedir@/run/quagga/ospfd.pid
|
|
ExecStart=@SBINDIR@/ospfd -d $ospfd_options -f @SYSCONFDIR@/quagga/ospfd.conf
|
|
ExecStopPost=@base_bindir@/rm -rf @localstatedir@/run/quagga/ospfd.pid
|
|
Restart=on-abort
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|