megacoffee.net Gentoo overlay - legacy mirror
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-beta/files/initd_1 @ 166:58a9a20ec12f
updated emby-server-beta to be able to run side by side with emby-server
author | gsnerf <gsnerf@gsnerf.de> |
---|---|
date | Thu, 16 Jun 2016 22:07:02 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
165:676a84c72a2f | 166:58a9a20ec12f |
---|---|
1 #!/sbin/runscript | |
2 | |
3 PIDFILE="/tmp/emby-server.pid" | |
4 PROGRAMDATA="/usr/lib/emby-server" | |
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/emby-server/start.sh" | |
7 EXEC="./MediaBrowser.Server.Mono.exe -programdata ${PROGRAMDATA} -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe" | |
8 EXEC_DIR="/opt/emby-server/" | |
9 EXEC_USER="emby" | |
10 LOG_FILE="/var/log/emby-server_start.log" | |
11 | |
12 start() { | |
13 ebegin "Starting Emby-Server" | |
14 # we are starting the service (-x): | |
15 # - in background with the given pid file (-m -p -b) | |
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} | |
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 $? | |
20 } | |
21 | |
22 stop() { | |
23 ebegin "Stopping Emby-Server" | |
24 start-stop-daemon -K -p ${PIDFILE} | |
25 eend $? | |
26 } | |
27 | |
28 restart() { | |
29 stop | |
30 sleep 3 | |
31 start | |
32 } |