Last active
July 19, 2016 14:06
-
-
Save dreampiggy/219a2d7301dffce936c5080cff614ce8 to your computer and use it in GitHub Desktop.
Thunder Xware boot service for Raspberry Pi or NAS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# /etc/init.d/thunder | |
### BEGIN INIT INFO | |
# Provides: thunder | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start Thunder Server at boot time | |
# Description: Start Thunder Server at boot time. | |
### END INIT INFO | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin | |
case "$1" in | |
start) | |
echo "Starting Thunder Server" | |
# Locate where the Xware portal binary is and exec | |
/home/pi/thunder/portal | |
;; | |
stop) | |
echo "Stopping Thunder Server" | |
killall ETMDaemon | |
killall EmbedThunderManager | |
killall vod_httpserver | |
;; | |
*) | |
echo "Usage: /etc/init.d/thunder {start|stop}" | |
exit 1 | |
;; | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment