[Main]
Type = classic
Version = 0.0.2
Description = "Open vSwitch Daemon"
Depends = ( ovsdb-server )
User = ( root )

[Start]
Execute = (
    /usr/lib/execline/bin/foreground { mkdir -p /run/openvswitch }
    /usr/lib/execline/bin/if {  modprobe openvswitch }
     execl-cmdline -s {  ovs-vswitchd --pidfile=${PidFile} }
)

[Environment]
PidFile=!/run/openvswitch/ovs-vswitchd.pid
