mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 01:51:26 +00:00
debian: Use PIDFile with systemd.
This commit adds PIDFile to all systemd service file with Type=forking in order to always have the correct PID to monitor. Related commit: f385abded520 rhel: Use PIDFile on forking systemd service files Acked-by: Eli Britstein <elibr@nvidia.com> Signed-off-by: Roi Dayan <roid@nvidia.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
parent
439e0bf2f8
commit
3f19558e73
@ -11,6 +11,7 @@ DefaultDependencies=no
|
||||
[Service]
|
||||
LimitNOFILE=1048576
|
||||
Type=forking
|
||||
PIDFile=/run/openvswitch/ovs-vswitchd.pid
|
||||
Restart=on-failure
|
||||
Environment=HOME=/var/run/openvswitch
|
||||
EnvironmentFile=-/etc/default/openvswitch-switch
|
||||
|
@ -8,6 +8,7 @@ DefaultDependencies=no
|
||||
[Service]
|
||||
LimitNOFILE=1048576
|
||||
Type=forking
|
||||
PIDFile=/run/openvswitch/ovsdb-server.pid
|
||||
Restart=on-failure
|
||||
EnvironmentFile=-/etc/default/openvswitch-switch
|
||||
ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \
|
||||
|
Loading…
x
Reference in New Issue
Block a user