]> git.proxmox.com Git - ovs.git/blob - debian/openvswitch-switch.ovsdb-server.service
* Reworked .service files to make them look like in Ubuntu (as I still want
[ovs.git] / debian / openvswitch-switch.ovsdb-server.service
1 [Unit]
2 Description=Open vSwitch Database Unit
3 After=syslog.target network-pre.target dpdk.service local-fs.target
4 Before=network.target networking.service
5 PartOf=openvswitch-switch.service
6 DefaultDependencies=no
7
8 [Service]
9 LimitNOFILE=1048576
10 Type=forking
11 Restart=on-failure
12 EnvironmentFile=-/etc/default/openvswitch-switch
13 ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \
14 --no-ovs-vswitchd --no-monitor --system-id=random \
15 start $OVS_CTL_OPTS
16 ExecStop=/usr/share/openvswitch/scripts/ovs-ctl --no-ovs-vswitchd stop
17 ExecReload=/usr/share/openvswitch/scripts/ovs-ctl --no-ovs-vswitchd \
18 --no-monitor restart $OVS_CTL_OPTS
19 RuntimeDirectory=openvswitch
20 RuntimeDirectoryMode=0755
21 RuntimeDirectoryPreserve=yes