You are not logged in.
Pages: 1
The package dqcache comes without any init.d script so it thus needs hand crafting.
1) Edit /etc/default/dqcache by adding "export" to every variable setting. For example:
# dqcache runs chrooted in the directory specified
# by the $ROOT environment variable
#
export ROOT="/var/lib/dqcache/root"# dqcache listens for incoming UDP packets and TCP connections
....
2) Create /etc/init.d/dqcache with the following:
#!/usr/bin/env /lib/init/init-d-script
### BEGIN INIT INFO
# Provides: atd
# Required-Start: $syslog $time $remote_fs
# Required-Stop: $syslog $time $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: DNS Cacher
# Description: Debian init script to start the dbcacher daemon
### END INIT INFO
DESC="DNS cacher daemon"
DAEMON=/usr/sbin/dqcache
PIDFILE=none
NAME=dqcache
START_ARGS=--background
export UID=$(id -u $NAME)
export GID=$(id -g $NAME)
3) Finalize with usual hands-on
# update-rc.d dqcache defaults
# update-rc.d dqcache enable
# service dqcache restart
Online
nice, thanks for this
edit] just a note, make init script executable, after creating :
# chmod +x /etc/init.d/dqcache
also, init script change line 3 to :
# Provides: dqcache
Last edited by xinomilo (2020-09-23 20:08:12)
Offline
Pages: 1