mirror of the now-defunct rocklinux.org
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.

24 lines
486 B

  1. #!/bin/sh
  2. #
  3. # ROCK Linux: /etc/rc.d/init.d/dansguardian
  4. #
  5. # Desc: DansGuarian - Filtering pass-through proxy
  6. # Runlevel: 56 rcX
  7. #
  8. main_begin
  9. block_begin(start, `Starting Dansguardian.')
  10. check(`D_prefix/sbin/dansguardian')
  11. block_end
  12. block_begin(stop, `Stopping Dansguardian.')
  13. check(`D_prefix/sbin/dansguardian -q')
  14. block_end
  15. block_begin(restart, `Restarting Dansguardian.')
  16. check(`D_prefix/sbin/dansguardian -r')
  17. block_end
  18. main_end