Environment:
NAS Model: Synology DS211
DSM Version: DSM 3.2
1.Save the code below to /usr/syno/etc/rc.d/S99ntop.sh
#!/bin/sh
# Copyright (c) 2000-2011 Synology Inc. All rights reserved.
NTOP="/opt/bin/ntop"
PID="/var/run/ntop.pid"
case "$1" in
"start")
if [ -x "$NTOP" ] ; then
echo "Starting ntop..."
$NTOP > /dev/null 2>&1 &
fi
;;
"stop")
echo "stop ntop"
kill -USR1 `cat $PID` > /dev/null 2>&1
;;
"restart")
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 { start | stop }" >&2
exit 1
;;
esac
exit 0
2. chmod u+x /usr/syno/etc/rc.d/S99ntop.sh