follwup on the (closed?) thread
I think re-using the factory runlevels is probably best than using ‘defaults’ sys v proposed in the above thread…
execute this script to start, stop or audit orion, which controls the crawlers
- Usage:
MyBookLive:~# sh tame-crawler.sh
tame-crawler.sh [start|stop|status]
- Script below
#!/bin/bash
if [-z $1]; then echo “basename $0
[start|stop|status]” ; exit ; fi
case $1 in
status)
ls /etc/rc*.d | egrep -i “etc|orion”
pgrep -f crawlerd
pgrep -f cationmanagerd
;;
stop)
update-rc.d -f orion remove ; /etc/init.d/orion stop
sleep 2
if pgrep -f crawlerd ; then pkill -9 -f crawlerd ; fi
if pgrep -f cationmanagerd ; then pkill -9 -f cationmanagerd ; fi
;;
start) update-rc.d orion stop 05 0 3 4 6 . start 86 2 . && /etc/init.d/orion start
;;
*) echo “not a valid option, try again” ; exit 1
;;
esac
Hope this helps!