You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
670 B

  1. #!/usr/bin/env /lib/init/init-d-script
  2. ### BEGIN INIT INFO
  3. # Provides: dqcache
  4. # Required-Start: $syslog $time $remote_fs networking
  5. # Required-Stop: $syslog $time $remote_fs networking
  6. # Default-Start: 2 3 4 5
  7. # Default-Stop: 0 1 6
  8. # Short-Description: DNS Cacher
  9. # Description: Debian init script to start the dbcacher daemon
  10. ### END INIT INFO
  11. DESC="DNS cacher daemon"
  12. DAEMON=/usr/sbin/dqcache
  13. PIDFILE=none
  14. NAME="dqcache"
  15. START_ARGS=--background
  16. do_start_prepare() {
  17. /bin/rm -f /var/lib/dqcache/root/dump/dnsdata
  18. }
  19. do_restart_prepare() {
  20. do_start_prepare
  21. }
  22. export UID=$(id -u $NAME)
  23. export GID=$(id -g $NAME)
  24. echo $ROOT >&2