derwyn's blog

Fedora Creation of Services

# Source function library.

# chkconfig: 345 105 15
# description:
# The above two lines are imp to put it in chkconfig

PID=`pidof service`

start() {

echo There is a service process already running: $PID
else
/Path to service/service > /dev/null &
echo `pidof service` > /usr/local/bin/servicepid
echo Starting : service `pidof service`

Syndicate content