diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2015-08-24 20:47:16 +0300 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2015-08-24 20:47:16 +0300 |
commit | 0c6710a5661dcb9d197d5dc6c5f22aeb03ba583d (patch) | |
tree | 2792107df1e29aa284f37a4302b05eed7689b6ed /net-libs/tox/files/initd | |
parent | 3a33f2966f834d3520b03df59018e3d0295fcc69 (diff) |
Revert "[toxcore] adaugat toxcore"
This reverts commit 3a33f2966f834d3520b03df59018e3d0295fcc69.
Diffstat (limited to 'net-libs/tox/files/initd')
-rw-r--r-- | net-libs/tox/files/initd | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/net-libs/tox/files/initd b/net-libs/tox/files/initd index c500e9b4..728cb6f5 100644 --- a/net-libs/tox/files/initd +++ b/net-libs/tox/files/initd @@ -1,7 +1,8 @@ #!/sbin/runscript -PIDDIR=/run/tox-bootstrapd -PIDFILE="${PIDDIR}"/tox-bootstrap.pid +PIDFILE=/run/tox-dht-bootstrap.pid +LOGDIR=/var/log/tox-dht-bootstrap +RUNDIR=/var/lib/tox-dht-bootstrap depend() { need net @@ -10,13 +11,16 @@ depend() { start() { ebegin "Starting tox-dht-bootstrap daemon" - [ -d "${PIDDIR}" ] || mkdir -p "${PIDDIR}" - chown -R ${TOX_USER}:${TOX_GROUP} "${PIDDIR}" + [ -d "${LOGDIR}" ] || mkdir -p "${LOGDIR}" + [ -d "${RUNDIR}" ] || mkdir -p "${RUNDIR}" + chown -R nobody:nobody "${LOGDIR}" "${RUNDIR}" start-stop-daemon --start \ - --pidfile "${PIDFILE}" \ - --user=${TOX_USER} --group=${TOX_GROUP} \ - --exec /usr/bin/tox-bootstrapd -- /etc/tox-bootstrapd.conf + --pidfile "${PIDFILE}" --make-pidfile --background \ + --stdout "${LOGDIR}/stdout" --stderr "${LOGDIR}/stderr" \ + --chdir "${RUNDIR}" \ + --user=nobody --group=nobody \ + --exec /usr/bin/DHT_bootstrap eend $? } |