parent
31d9673172
commit
670ded5617
@ -0,0 +1,16 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Open vSwitch Internal Unit
|
||||||
|
After=syslog.target
|
||||||
|
PartOf=openvswitch.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
EnvironmentFile=-/etc/sysconfig/openvswitch
|
||||||
|
RemainAfterExit=yes
|
||||||
|
ExecStartPost=/usr/bin/touch /var/lock/subsys/openvswitch
|
||||||
|
ExecStart=/usr/share/openvswitch/scripts/ovs-ctl start --system-id=random \
|
||||||
|
$FORCE_COREFILES $OVSDB_SERVER_PRIORITY $VSWITCHD_PRIORITY \
|
||||||
|
$VSWITCHD_MLOCKALL $BRCOMPAT $OVS_CTL_OPTS
|
||||||
|
ExecStop=/usr/share/openvswitch/scripts/ovs-ctl stop
|
||||||
|
ExecStopPost=/bin/rm /var/lock/subsys/openvswitch
|
||||||
|
|
@ -1,12 +1,15 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Open vSwitch
|
Description=Open vSwitch Unit
|
||||||
After=syslog.target network.target
|
After=syslog.target
|
||||||
|
After=network.target
|
||||||
|
After=openvswitch-nonetwork.service
|
||||||
|
Requires=openvswitch-nonetwork.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/share/openvswitch/scripts/openvswitch.init start
|
|
||||||
ExecStop=/usr/share/openvswitch/scripts/openvswitch.init stop
|
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
ExecStart=/bin/true
|
||||||
|
ExecStop=/bin/true
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in new issue