]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
Merge remote-tracking branch 'stevee/openvswitch-systemd'
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Aug 2012 20:09:14 +0000 (22:09 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Aug 2012 20:09:14 +0000 (22:09 +0200)
openvswitch/openvswitch.nm
openvswitch/systemd/openvswitch.service [new file with mode: 0644]

index fcf778d5e0b3bd61d51e56b34e00caaf9f8ceb4d..928d1525b9fcb0ccda61d93f07db94bd12f995f5 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = openvswitch
 version    = 1.7.0
-release    = 1
+release    = 2
 
 groups     = Networking/Tools
 url        = http://openvswitch.org/
diff --git a/openvswitch/systemd/openvswitch.service b/openvswitch/systemd/openvswitch.service
new file mode 100644 (file)
index 0000000..7aeae19
--- /dev/null
@@ -0,0 +1,14 @@
+[Unit]
+Description=Open vSwitch
+After=syslog.target network.target
+
+[Service]
+Type=oneshot
+ExecStartPre=/usr/share/openvswitch/scripts/ovs-ctl enable-protocol --protocol=gre
+ExecStart=/usr/share/openvswitch/scripts/ovs-ctl --system-id=random start
+ExecStop=/usr/share/openvswitch/scripts/ovs-ctl stop
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
+