-
Startupscripts for Linux
> $PANDORA_PATH/pandora.log &
# MYPID=$!
# echo $MYPID > $PIDFILE
su – pandora “$PANDORA_PATH/$DAEMON $PANDORA_PATH >> $PANDORA_PATH/pandora.log &”
sleep 1
MYPID=`ps auxw | grep $PANDORA_PATH/$DAEMON | grep -v “grep” | head -1 | awk ‘{ print $2;}’`
echo $MYPID > $PIDFILE
echo “Pandora Agent is now running with PID $MYPID”
;;I used “su” to start the agent under account pandora but made sure that
the pid files are stored as root.
Similiar setups were done for the other startup scripts.Maybe, this post is of any help for you.
Regards,
R.D.
Sorry, there were no replies found.