here is a /etc/init.d/aped that I found somewhere

%<-------------------------------------------------------

! /bin/sh
# /etc/init.d/aped
#
# chkconfig: 2345 85 15 
# description: APE Daemon
# processname: APE Daemon
#
# Install the service with chkconfig --add aped
# 
# Define where ape is installed. 
# The trailing slash is required ( Example : /my/path/bin/ )
APE_DIRECTORY=/etc/ape/
 
# Define the PID File 
PIDFILE=/var/run/aped.pid
 
# Source function library.
. /etc/init.d/functions
 
DAEMON="/usr/bin/aped --cfg ${APE_DIRECTORY}ape.conf > /dev/null"
 
start() {
 
        echo -n "Starting APE... "
 
        cd $APE_DIRECTORY;
        daemon $DAEMON
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch /var/lock/subsys/aped
        return $RETVAL
}
 
stop() {
        echo "Stopping APE..."
        kill `cat /var/run/aped.pid`
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && rm -f /var/lock/subsys/aped
}
 
 
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    restart)
        stop
        start
        ;;
    *)
        echo "Usage:  {start|stop|restart}"
        exit 1
        ;;
esac
exit $RETVAL


-- 
-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

--- 
You received this message because you are subscribed to the Google Groups "APE 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to