multimedia/emby-server(-devel): pass -P to daemon(8)

With the -r option, the -P option must be used instead of the -p option.
Otherwise, when stopping the service, daemon will restart the child.
See man daemon(8).
This commit is contained in:
Julien Cassette 2023-01-26 17:27:54 +01:00
parent 74e9e468ec
commit 2cf301a102
4 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= emby-server
DISTVERSION= 4.8.0.21
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= https://github.com/MediaBrowser/Emby.Releases/releases/download/${DISTVERSION}/ \
https://mediabrowser.github.io/embytools/

View File

@ -46,7 +46,7 @@ load_rc_config ${name}
pidfile="${%%RC_NAME%%_pid}"
procname="%%PREFIX%%/lib/emby-server/system/EmbyServer"
command="/usr/sbin/daemon"
command_args="-r -f -p ${%%RC_NAME%%_pid} ${procname} \
command_args="-r -f -P ${%%RC_NAME%%_pid} ${procname} \
-os freebsd \
-ffdetect ${%%RC_NAME%%_ffdetect} \
-ffmpeg ${%%RC_NAME%%_ffmpeg} \

View File

@ -1,5 +1,6 @@
PORTNAME= emby-server
DISTVERSION= 4.7.11.0
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= https://github.com/MediaBrowser/Emby.Releases/releases/download/${DISTVERSION}/ \
https://mediabrowser.github.io/embytools/

View File

@ -46,7 +46,7 @@ load_rc_config ${name}
pidfile="${%%RC_NAME%%_pid}"
procname="%%PREFIX%%/lib/emby-server/system/EmbyServer"
command="/usr/sbin/daemon"
command_args="-r -f -p ${%%RC_NAME%%_pid} ${procname} \
command_args="-r -f -P ${%%RC_NAME%%_pid} ${procname} \
-os freebsd \
-ffdetect ${%%RC_NAME%%_ffdetect} \
-ffmpeg ${%%RC_NAME%%_ffmpeg} \