Gentoo Archives: gentoo-commits

From: "Tony Vroon (chainsaw)" <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-mobilephone/smstools/files: smsd.initd2
Date: Wed, 27 Jul 2011 10:41:25
Message-Id: 20110727104113.DFA9E20051@flycatcher.gentoo.org
1 chainsaw 11/07/27 10:41:13
2
3 Added: smsd.initd2
4 Log:
5 The init script was not fully compatible with baselayout2; this new revision should fare much better.
6
7 (Portage version: 2.1.10.7/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 app-mobilephone/smstools/files/smsd.initd2
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-mobilephone/smstools/files/smsd.initd2?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-mobilephone/smstools/files/smsd.initd2?rev=1.1&content-type=text/plain
14
15 Index: smsd.initd2
16 ===================================================================
17 #!/sbin/runscript
18 # Copyright 1999-2011 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smstools/files/smsd.initd2,v 1.1 2011/07/27 10:41:13 chainsaw Exp $
21
22 depend() {
23 need localmount
24 }
25
26 start() {
27 chown smsd:sms /var/log/smsd.log
28 ebegin "Starting smsd"
29 start-stop-daemon -b -u smsd:sms --start --exec /usr/bin/smsd -- \
30 -c /etc/smsd.conf
31 eend ${?}
32 }
33
34 stop() {
35 ebegin "Stopping smsd"
36 start-stop-daemon --stop -n smsd
37 eend ${?}
38 }