#
### BEGIN INIT INFO
# Provides: openvswitch-ipsec
-# Required-Start: $network $local_fs $remote_fs
+# Required-Start: $network $local_fs $remote_fs openvswitch-switch
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
}
start_server() {
- PYTHONPATH=/usr/share/openvswitch/python \
- /usr/share/openvswitch/scripts/ovs-monitor-ipsec \
- --pidfile-name=$PIDFILE --detach --monitor \
+ if [ ! -d /var/run/openvswitch ]; then
+ install -d -m 755 -o root -g root /var/run/openvswitch
+ fi
+
+ /usr/share/openvswitch/scripts/ovs-monitor-ipsec \
+ --pidfile=$PIDFILE --log-file --detach --monitor \
unix:/var/run/openvswitch/db.sock
return 0