Does anyone know a graceful way to stop the Starling service? I can’t
seem to find any documentation and have just been issuing a kill
command on the pid.
Thanks,
Tom
Does anyone know a graceful way to stop the Starling service? I can’t
seem to find any documentation and have just been issuing a kill
command on the pid.
Thanks,
Tom
#!/bin/sh
. /etc/rc.d/init.d/functions
DAEMON=starling
DAEMON_PATH=/usr/local/bin/
SCRIPT_NAME=/etc/init.d/starling
CONFIG_PATH=/var/www/site/current/config/production-starling.yml
start()
{
echo -n $"Starting $DAEMON: "
daemon $DAEMON_PATH$DAEMON start -f $CONFIG_PATH
touch /var/lock/subsys/$DAEMON
echo
}
stop()
{
echo -n $"Shutting down $DAEMON: "
killproc $DAEMON
rm -f /var/lock/subsys/$DAEMON
echo
}
[ -x “$DAEMON_PATH$DAEMON” ] || exit 0
case “$1” in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo “Usage: $SCRIPT_NAME {start|stop|restart}” >&2
exit 3
;;
esac
:
Freddy,
I’m not sure this script will work. There is no /etc/init.d/starling
script?
Thanks,
Tom
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs