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.

28 lines
739 B

  1. #!/usr/bin/env /lib/init/init-d-script
  2. ### BEGIN INIT INFO
  3. # Provides: atd
  4. # Required-Start: $syslog $time $remote_fs
  5. # Required-Stop: $syslog $time $remote_fs
  6. # Default-Start: 2 3 4 5
  7. # Default-Stop: 0 1 6
  8. # Short-Description: run at jobs
  9. # Description: Debian init script to start the daemon
  10. # running at jobs.
  11. ### END INIT INFO
  12. NAME=didaff
  13. DESC="Distributed Intrusion Detection And Firewalling Framework"
  14. PIDFILE=none
  15. DAEMON=none
  16. do_start_cmd_override() {
  17. daemon -n didaff -r -- /home/didaff/didaff server
  18. }
  19. do_stop_cmd_override() {
  20. daemon -n didaff --stop -- /home/didaff/didaff server
  21. }
  22. do_status_override() {
  23. daemon -n didaff --running -- /home/didaff/didaff server
  24. }