You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/cancd/files/cancd-init.d

24 lines
521 B

#!/sbin/openrc-run
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
depend() {
need net
}
start() {
mkdir -p ${CRASH_DIR}
chown ${CHUID} ${CRASH_DIR}
chmod 700 ${CRASH_DIR}
ebegin "Starting cancd"
start-stop-daemon --start --quiet --user ${CHUID} --exec /usr/sbin/cancd -- -p ${CANCD_PORT} -l "${CRASH_DIR}" -o "${CRASH_FORMAT}"
eend ${?}
}
stop() {
ebegin "Stopping cancd"
start-stop-daemon --stop --quiet --exec /usr/sbin/cancd
eend ${?}
}