# Put this file in /usr/local/etc/rc.d

case "$1" in
  stop)
    echo "Shutting down Audio Station Scrobbler..."
    kill "`cat XX`"
    ;;
  start)
    echo "Booting up Audio Station Scrobbler..."
    exec /usr/local/bin/node /usr/fronk/Audio-Station-Scrobbler/bin.server.js
    ;;
  restart)
    $0 stop
    sleep 3
    $0 start
    ;;
esac
Add start/stop script to put in /usr/local/etc/rc.d
Add start/stop script to put in /usr/local/etc/rc.d
