The officially official Devuan Forum!

You are not logged in.

#1 2020-09-14 09:51:02

ralph.ronnquist
Administrator
From: Clifton Hill, Victoria, AUS
Registered: 2016-11-30
Posts: 446  

package dqcache

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

Offline

Board footer