From 2cf301a102c8a11b74e7bdbd2830a87979530e95 Mon Sep 17 00:00:00 2001 From: Julien Cassette Date: Thu, 26 Jan 2023 17:27:54 +0100 Subject: [PATCH] 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). --- multimedia/emby-server-devel/Makefile | 1 + multimedia/emby-server-devel/files/emby-server.in | 2 +- multimedia/emby-server/Makefile | 1 + multimedia/emby-server/files/emby-server.in | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/multimedia/emby-server-devel/Makefile b/multimedia/emby-server-devel/Makefile index 6f2467c4faec..8ff8f364288d 100644 --- a/multimedia/emby-server-devel/Makefile +++ b/multimedia/emby-server-devel/Makefile @@ -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/ diff --git a/multimedia/emby-server-devel/files/emby-server.in b/multimedia/emby-server-devel/files/emby-server.in index 8057bdcba11f..0d034a447d03 100644 --- a/multimedia/emby-server-devel/files/emby-server.in +++ b/multimedia/emby-server-devel/files/emby-server.in @@ -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} \ diff --git a/multimedia/emby-server/Makefile b/multimedia/emby-server/Makefile index 3f59f51b57df..7ea30b515674 100644 --- a/multimedia/emby-server/Makefile +++ b/multimedia/emby-server/Makefile @@ -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/ diff --git a/multimedia/emby-server/files/emby-server.in b/multimedia/emby-server/files/emby-server.in index 8057bdcba11f..0d034a447d03 100644 --- a/multimedia/emby-server/files/emby-server.in +++ b/multimedia/emby-server/files/emby-server.in @@ -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} \