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: 1,106  

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

#2 2020-09-22 20:36:19

xinomilo
Unknown
Registered: 2017-07-02
Posts: 315  

Re: package dqcache

nice, thanks for this smile

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

Board footer