mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-14 01:37:09 +02:00
28 lines
671 B
Plaintext
28 lines
671 B
Plaintext
#!/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 $?
|
|
}
|