Public feed #887564

yond13

public text v1 · immutable
Raw Edit
·published 2008-02-01 12:34 UTC
rendered paste body
#! /bin/sh
# /etc/init.d/dbhub
#

# Always Run
touch /var/lock/dbhub

# Carry out specific functions when asked to by the system
case "$1" in
  start)
    echo "Starting Dbhub"
    su komodo -c 'sudo dbhub'
    ;;
  stop)
    echo "Stopping dbhub"
    su komodo -c 'sudo killall dbhub'
    ;;
  *)
    echo "Usage: /etc/init.d/blah {start|stop}"
    exit 1
    ;;
esac

exit 0