summaryrefslogtreecommitdiff
blob: 1cad833d8ae2f6d1b64dfc224f90786c9a567284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/openrc-run
# Copyright 1999-2016 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="${SYNCTHING_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
}