Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/snmptt/files: snmptt.initd-r1
Date: Tue, 26 Nov 2013 12:32:54
Message-Id: 20131126123249.E4C962004E@flycatcher.gentoo.org
1 jer 13/11/26 12:32:49
2
3 Added: snmptt.initd-r1
4 Log:
5 Version bump. Clean up init script. Use /run not /var/run.
6
7 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A792A613)
8
9 Revision Changes Path
10 1.1 net-analyzer/snmptt/files/snmptt.initd-r1
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/snmptt/files/snmptt.initd-r1?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/snmptt/files/snmptt.initd-r1?rev=1.1&content-type=text/plain
14
15 Index: snmptt.initd-r1
16 ===================================================================
17 #!/sbin/runscript
18 # Copyright 1999-2013 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/snmptt/files/snmptt.initd-r1,v 1.1 2013/11/26 12:32:49 jer Exp $
21
22 depend() {
23 need snmptrapd
24 }
25
26 start() {
27 ebegin "Starting snmptt"
28 start-stop-daemon --start --pidfile /run/snmptt.pid --exec /usr/sbin/snmptt
29 eend
30 }
31
32 stop() {
33 ebegin "Stopping snmptt"
34 start-stop-daemon --stop --pidfile /run/snmptt.pid
35 eend
36 }