PDA

View Full Version : Startup



fedorafan2
30th May 2006, 02:26 AM
I have to make my server run this script at startup:

# Startup ventrilo servers.

VENPATH=/home/ventrilo
VENBIN=$VENPATH/ventrilo_srv

su ventrilo -c "$VENBIN -f$VENPATH/3784 -d"
su ventrilo -c "$VENBIN -f$VENPATH/4000 -d"

renice -5 `cat $VENPATH/3784.pid`
renice -5 `cat $VENPATH/4000.pid`

I was just going to add it to /etc/rc.d/rc.local file.
My question is how do I creat a user named ventrilo that will work with this script.

giulix
30th May 2006, 08:50 AM
man useradd