You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
382 B
17 lines
382 B
2 years ago
|
#!/sbin/openrc-run
|
||
|
|
||
|
start() {
|
||
|
ebegin "Starting Plex Media Server"
|
||
|
start-stop-daemon -S -m -p ${PLEX_PIDFILE} -1 ${PLEX_OUTLOG} -2 ${PLEX_ERRLOG} --quiet -u ${PLEX_USER} -N -5 -b --exec "${PLEX_SCRIPT}"
|
||
|
eend $?
|
||
|
}
|
||
|
|
||
|
stop() {
|
||
|
ebegin "Stopping Plex Media Server"
|
||
|
kill -- -`cat ${PLEX_PIDFILE}`
|
||
|
|
||
|
# Remove stale pid file since this is a dirty solution
|
||
|
rm ${PLEX_PIDFILE}
|
||
|
eend $?
|
||
|
}
|