6 PID
=$
(pidof
-o %PPID
/opt
/nessus
/sbin
/nessus-service nessusd
)
9 stat_busy
"Starting nessusd Daemon"
10 if [[ -z $PID ]]; then
11 /opt
/nessus
/sbin
/nessus-service
-D -q
12 PID
=$
(pidof
-o %PPID
/opt
/nessus
/sbin
/nessus-service nessusd
)
13 if [[ -z $PID ]]; then
26 stat_busy
"Stopping nessusd Daemon"
27 if [[ $PID ]] && kill $PID &>/dev
/null
; then
41 echo "usage: $0 {start|stop|restart}"