We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.

comparison media-tv/emby-server/files/initd_1 @ 91:17a5eaaa191c

moved yet unreleased new stable revision to current hotfix and fixed some things in the renamed package
author gsnerf <gsnerf@gsnerf.de>
date Sun, 05 Apr 2015 18:11:40 +0200
parents e0f97106108d
children
comparison
equal deleted inserted replaced
90:e0f97106108d 91:17a5eaaa191c
1 #!/sbin/runscript 1 #!/sbin/runscript
2 2
3 PIDFILE="/tmp/mediabrowser-server.pid" 3 PIDFILE="/tmp/emby-server.pid"
4 PROGRAMDATA="/usr/lib/mediabrowser-server" 4 PROGRAMDATA="/usr/lib/emby-server"
5 #EXEC="mono-service2 -d /opt/mediabrowser-server/ -m mediabrowser-server -n mediabrowser-server /opt/mediabrowser-server/MediaBrowser.Server.Mono.exe -programdata ${PROGRAMDATA}" 5 #EXEC="mono-service2 -d /opt/emby-server/ -m emby-server -n emby-server /opt/emby-server/MediaBrowser.Server.Mono.exe -programdata ${PROGRAMDATA}"
6 #EXEC="/opt/mediabrowser-server/start.sh" 6 #EXEC="/opt/emby-server/start.sh"
7 EXEC="./MediaBrowser.Server.Mono.exe -programdata ${PROGRAMDATA} -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe" 7 EXEC="./MediaBrowser.Server.Mono.exe -programdata ${PROGRAMDATA} -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe"
8 EXEC_DIR="/opt/mediabrowser-server/" 8 EXEC_DIR="/opt/emby-server/"
9 EXEC_USER="mediabrowser" 9 EXEC_USER="emby"
10 LOG_FILE="/var/log/mediabrowser_start.log" 10 LOG_FILE="/var/log/emby-server_start.log"
11 11
12 start() { 12 start() {
13 ebegin "Starting MediaBrowser-Server" 13 ebegin "Starting Emby-Server"
14 # we are starting the service (-x): 14 # we are starting the service (-x):
15 # - in background with the given pid file (-m -p -b) 15 # - in background with the given pid file (-m -p -b)
16 # - as a specific user (-u) 16 # - as a specific user (-u)
17 #start-stop-daemon -S -m -p $PIDFILE -b -u ${EXEC_USER} -d ${EXEC_DIR} -x ${EXEC} -1 ${LOG_FILE} -2 ${LOG_FILE} 17 #start-stop-daemon -S -m -p $PIDFILE -b -u ${EXEC_USER} -d ${EXEC_DIR} -x ${EXEC} -1 ${LOG_FILE} -2 ${LOG_FILE}
18 start-stop-daemon -S -m -p $PIDFILE -b -u ${EXEC_USER} -d ${EXEC_DIR} -1 ${LOG_FILE} -2 ${LOG_FILE} -x mono -- ${EXEC} 18 start-stop-daemon -S -m -p $PIDFILE -b -u ${EXEC_USER} -d ${EXEC_DIR} -1 ${LOG_FILE} -2 ${LOG_FILE} -x mono -- ${EXEC}
19 eend $? 19 eend $?
20 } 20 }
21 21
22 stop() { 22 stop() {
23 ebegin "Stopping MediaBrowser-Server" 23 ebegin "Stopping Emby-Server"
24 start-stop-daemon -K -p ${PIDFILE} 24 start-stop-daemon -K -p ${PIDFILE}
25 eend $? 25 eend $?
26 } 26 }
27 27
28 restart() { 28 restart() {