burrow-pi-img/stage2/06-dride-base/files/etc_initd_dride-core

36 lines
718 B
Bash

#! /bin/sh
# /etc/init.d/dride-core
### BEGIN INIT INFO
# Provides: dride-core
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: will run the main dride-core process
# Description:
### END INIT INFO
case "$1" in
start)
echo "Setting up HwClock"
sudo hwclock -s
echo "Starting dride-core"
#blink LED
sudo python /home/core/modules/indicators/python/states/standalone.py welcome
;;
stop)
echo "Stopping dride-core"
# kill application you want to stop
killall python
;;
*)
echo "Usage: /etc/init.d/dride-core{start|stop}"
exit 1
;;
esac
exit 0