|
|
@ -56,45 +56,8 @@ eval "$MAKE $makeopt" |
|
|
|
eval "$MAKE install" |
|
|
|
ldconfig |
|
|
|
|
|
|
|
cat >/etc/rc.d/init.d/$pkg << EOF |
|
|
|
#!/bin/sh |
|
|
|
# |
|
|
|
# ROCK Linux: /etc/rc.d/init.d/$pkg |
|
|
|
# |
|
|
|
# Startup scripts for Nessus |
|
|
|
# |
|
|
|
# |
|
|
|
# Desc: Nessus security scanner |
|
|
|
# |
|
|
|
install_init nessusd $confdir/nessusd.init |
|
|
|
|
|
|
|
test -f /usr/sbin/nessusd || exit 0 |
|
|
|
|
|
|
|
case "\$1" |
|
|
|
in |
|
|
|
start) |
|
|
|
echo "Starting nessusd" |
|
|
|
/usr/sbin/nessusd -D& |
|
|
|
;; |
|
|
|
|
|
|
|
stop) |
|
|
|
echo "Stopping nessusd" |
|
|
|
pid=\`pidof nessusd\` |
|
|
|
if [ "\$pid" != "" ] ; then |
|
|
|
echo "nessusd [\$pid]" |
|
|
|
kill -TERM \$pid |
|
|
|
sleep 1 |
|
|
|
else |
|
|
|
echo "not running" |
|
|
|
|
|
|
|
fi |
|
|
|
;; |
|
|
|
*) |
|
|
|
echo "Usage: \$0 { start | stop }" ; exit 1 ;; |
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
EOF |
|
|
|
chmod 744 /etc/rc.d/init.d/$pkg |
|
|
|
} |
|
|
|
|
|
|
|
autoextract=0 |
|
|
|