Browse Source

added init script for didaff

master
Ralph Rönnquist 5 months ago
parent
commit
9da6428f97
1 changed files with 27 additions and 0 deletions
  1. +27
    -0
      didaff-server

+ 27
- 0
didaff-server View File

@@ -0,0 +1,27 @@
#!/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: run at jobs
# Description: Debian init script to start the daemon
# running at jobs.
### END INIT INFO
NAME=didaff
DESC="Distributed Intrusion Detection And Firewalling Framework"
PIDFILE=none
DAEMON=none

do_start_cmd_override() {
daemon -n didaff -r -- /home/didaff/didaff server
}

do_stop_cmd_override() {
daemon -n didaff --stop -- /home/didaff/didaff server
}

do_status_override() {
daemon -n didaff --running -- /home/didaff/didaff server
}

Loading…
Cancel
Save