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/net-p2p/airdcpp-webclient/files/airdcppd.initd

22 lines
584 B

#!/sbin/openrc-run
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
AIRDCPPD_USER="${AIRDCPPD_USER:-${RC_SVCNAME}}"
AIRDCPPD_GROUP="${AIRDCPPD_GROUP:-${RC_SVCNAME}}"
AIRDCPPD_UMASK="${AIRDCPPD_UMASK:-007}"
AIRDCPPD_HOME="$(getent passwd "${AIRDCPPD_USER}" | cut -d: -f6)"
command="/usr/bin/airdcppd"
pidfile="${AIRDCPPD_HOME}/.airdc++/${RC_SVCNAME}.pid"
command_args="-d"
start_stop_daemon_args="\
--user ${AIRDCPPD_USER} \
--group ${AIRDCPPD_GROUP} \
--umask ${AIRDCPPD_UMASK} \
"
depend() {
need localmount net
}