[Thread Prev][Thread Next][Thread Index]
SOLARIS 7 start/stop script for PilotManager v1.107
- To: pilotmgr@xxxxxxxxxxxxxxxxxxxx
- Subject: SOLARIS 7 start/stop script for PilotManager v1.107
- From: Trevor Pretty - SolNet Technologies - Sun NZ ISO <trevor@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 12 Mar 1999 19:31:06 +1300 (NZDT)
- Sender: owner-pilotmgr@moshpit
PilotManager users.
I love the new daemon feature of PilotManager v1.107 but did not like the warning about running it twice. This Solaris 7 script fixes all that.
I've put it in my /etc/rc3.d
For those on lesser version of Solaris (or some other UNIX) you will probably have to chnage this to use that old grep & awk method or write your own pkill. The new Solaris 7 pkill and pgrep commands however make these sorts of scripts a much easir job.
Share and enjoy.
Trevor Pretty
BTW If you have no idea what this Email is about just keep pressing that little button from the GUI when you are told :-)
------------ code ----------
#!/sbin/sh
#
#set -x
PILOT="/usr/local/pilot/"
MGR="PilotManager"
case "$1" in
'start')
echo "Killing off all PilotManager Processes"
/usr/bin/pkill -9 -f $MGR
echo "starting $PILOT/$MGR"
if [ -f $PILOT/$MGR ]; then
$PILOT/$MGR -daemon
fi
;;
'stop')
echo "Killing off all PilotManager Processes"
/usr/bin/pkill -9 -f $MGR
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0
------------------------------------------------------------------------
***********************************************************
* This is a public mailing list! *
* Please do not publish Sun proprietary information here! *
* - - - - - - - - - - - - - - *
* http://www.moshpit.org/pilotmgr *
***********************************************************
|
|