]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
network: Add systemd unit file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 26 Mar 2011 20:08:17 +0000 (21:08 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 26 Mar 2011 20:08:17 +0000 (21:08 +0100)
Reference #149.

pkgs/network/network-init.init [deleted file]
pkgs/network/network.init [deleted file]
pkgs/network/network.nm
pkgs/network/systemd/network.service [new file with mode: 0644]

diff --git a/pkgs/network/network-init.init b/pkgs/network/network-init.init
deleted file mode 100644 (file)
index a44b96e..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-description            "Control the networking"
-author                 "IPFire Team"
-
-start on stopped mountfs
-
-pre-start script
-       network init
-end script
diff --git a/pkgs/network/network.init b/pkgs/network/network.init
deleted file mode 100644 (file)
index 9bb79e5..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-description            "Control the networking"
-author                 "IPFire Team"
-
-start on started network-init
-stop on shutdown-network
-
-pre-start script
-       network start
-end script
-
-post-stop script
-       network stop
-end script
index 516cf1a4addff9c840135600ca3d69de4dc6f9dc..6fc792f8c7abe1f085ae4d49a6e45f4b1578b255 100644 (file)
@@ -26,7 +26,7 @@ include $(PKGROOT)/Include
 
 PKG_NAME       = network
 PKG_VER        = 0.99.0
-PKG_REL        = 3
+PKG_REL        = 4
 PKG_ARCH       = noarch
 
 PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
diff --git a/pkgs/network/systemd/network.service b/pkgs/network/systemd/network.service
new file mode 100644 (file)
index 0000000..0f65bcc
--- /dev/null
@@ -0,0 +1,13 @@
+[Unit]
+Description=Network Connectivity
+Before=network.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecPreStart=/sbin/network init
+ExecStart=/sbin/network start
+ExecStop=/sbin/network stop
+
+[Install]
+WantedBy=multi-user.target