]> git.ipfire.org Git - network.git/commitdiff
Add systemd unit files for networking.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 27 May 2012 12:23:55 +0000 (12:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 27 May 2012 12:23:55 +0000 (12:23 +0000)
systemd/network.service [new file with mode: 0644]
systemd/network@.service [new file with mode: 0644]

diff --git a/systemd/network.service b/systemd/network.service
new file mode 100644 (file)
index 0000000..0fdb7de
--- /dev/null
@@ -0,0 +1,13 @@
+[Unit]
+Description=Network Connectivity
+Before=network.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStartPre=/usr/sbin/network init
+ExecStart=/usr/sbin/network start
+ExecStop=/usr/sbin/network stop
+
+[Install]
+WantedBy=multi-user.target
diff --git a/systemd/network@.service b/systemd/network@.service
new file mode 100644 (file)
index 0000000..2ae3a72
--- /dev/null
@@ -0,0 +1,8 @@
+[Unit]
+Description=Network Connectivity for zone %I
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/sbin/network zone %I up
+ExecStop=/usr/sbin/network zone %I down