diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2011-07-27 10:41:13 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2011-07-27 10:41:13 +0000 |
commit | 23816db39a3e188292187caac4f3471f318f7055 (patch) | |
tree | 62f5b946c42f023174d68faaa1d3fc0a1c9c56f0 /app-mobilephone/smstools/files | |
parent | version bump (diff) | |
download | gentoo-2-23816db39a3e188292187caac4f3471f318f7055.tar.gz gentoo-2-23816db39a3e188292187caac4f3471f318f7055.tar.bz2 gentoo-2-23816db39a3e188292187caac4f3471f318f7055.zip |
The init script was not fully compatible with baselayout2; this new revision should fare much better.
(Portage version: 2.1.10.7/cvs/Linux x86_64)
Diffstat (limited to 'app-mobilephone/smstools/files')
-rw-r--r-- | app-mobilephone/smstools/files/smsd.initd2 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app-mobilephone/smstools/files/smsd.initd2 b/app-mobilephone/smstools/files/smsd.initd2 new file mode 100644 index 000000000000..7323feebc406 --- /dev/null +++ b/app-mobilephone/smstools/files/smsd.initd2 @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smstools/files/smsd.initd2,v 1.1 2011/07/27 10:41:13 chainsaw Exp $ + +depend() { + need localmount +} + +start() { + chown smsd:sms /var/log/smsd.log + ebegin "Starting smsd" + start-stop-daemon -b -u smsd:sms --start --exec /usr/bin/smsd -- \ + -c /etc/smsd.conf + eend ${?} +} + +stop() { + ebegin "Stopping smsd" + start-stop-daemon --stop -n smsd + eend ${?} +} |