diff options
author | Mika Havela <mika.havela@gmail.com> | 2012-11-07 17:04:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-11-07 18:57:52 +0000 |
commit | 9c79223546389e13100a8e367688fffcb23c05ea (patch) | |
tree | a099191b78860a70aa87f3f161b9e80a536d0d97 /testing/motion/motion.initd | |
parent | c8a4b51e4a13d9aa435a3b7503702d7762fb545c (diff) | |
download | aports-9c79223546389e13100a8e367688fffcb23c05ea.tar.bz2 aports-9c79223546389e13100a8e367688fffcb23c05ea.tar.xz |
testing/motion: new aport
Diffstat (limited to 'testing/motion/motion.initd')
-rw-r--r-- | testing/motion/motion.initd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/motion/motion.initd b/testing/motion/motion.initd new file mode 100644 index 0000000000..78493c3d44 --- /dev/null +++ b/testing/motion/motion.initd @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/files/rsyncd.init.d,v 1.5 2007/02/23 11:33:59 uberlord Exp $ + +description="motion daemon" +user="motion" +command="/usr/bin/motion" +pidfile="/var/run/${RC_SVCNAME}/${RC_SVCNAME}.pid" + +start() { + ebegin "Starting ${RC_SVCNAME}" + start-stop-daemon --start \ + --exec ${command} \ + --user ${user} \ + --pidfile ${pidfile} \ + -- ${MOTION_OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${RC_SVCNAME}" + start-stop-daemon --stop \ + --exec ${command} \ + --pidfile ${pidfile} + eend $? +} |