]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
net-snmpd: Add systemd unit file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 2 Apr 2011 08:08:13 +0000 (10:08 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 2 Apr 2011 08:08:13 +0000 (10:08 +0200)
References #153.

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

index e9e8c86179a8fa127323437285012bc1c605af9d..803fc65fdfbfed9772b2d694a04836b6129a0088 100644 (file)
@@ -26,7 +26,7 @@ include $(PKGROOT)/Include
 
 PKG_NAME       = net-snmp
 PKG_VER        = 5.4.2.1
-PKG_REL        = 1
+PKG_REL        = 2
 
 PKG_MAINTAINER =
 PKG_GROUPS     = Networking/Daemons
diff --git a/pkgs/net-snmp/snmpd.init b/pkgs/net-snmp/snmpd.init
deleted file mode 100644 (file)
index 2db0103..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-description             "Starts the snmp Daemon"
-author                  "IPFire Team"
-
-start on started network
-stop on kill-all-network-services or stopping network
-
-exec /usr/sbin/snmpd -c /etc/snmpd.conf
-expect daemon
-respawn
diff --git a/pkgs/net-snmp/systemd/snmpd.service b/pkgs/net-snmp/systemd/snmpd.service
new file mode 100644 (file)
index 0000000..c6f032a
--- /dev/null
@@ -0,0 +1,9 @@
+[Unit]
+Description=Simple Network Management Protocol Daemon
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/snmpd -c /etc/snmpd.conf
+
+[Install]
+WantedBy=multi-user.target