X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=debian%2Fopenvswitch-ipsec.init;h=125b50f31e7860a110dd786d39351300a143fe12;hb=97d6520bea3b779d1acee7b1b2fd8ed60269078f;hp=5f4240672ed840aa7cc439b0303a7a9d654db2ab;hpb=9704460403a02554595b5a7ed17914a0b0357cac;p=openvswitch diff --git a/debian/openvswitch-ipsec.init b/debian/openvswitch-ipsec.init index 5f424067..125b50f3 100755 --- a/debian/openvswitch-ipsec.init +++ b/debian/openvswitch-ipsec.init @@ -19,7 +19,7 @@ # ### 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 @@ -69,9 +69,12 @@ running() { } 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