git: 657bb2025e24 - main - multimedia/emby-server(-devel): pass -r to daemon in the rc script

From: Dries Michiels <driesm_at_FreeBSD.org>
Date: Fri, 23 Sep 2022 19:35:43 UTC
The branch main has been updated by driesm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=657bb2025e24feb1e96489c8a420ea8df1a61eb5

commit 657bb2025e24feb1e96489c8a420ea8df1a61eb5
Author:     Dries Michiels <driesm@FreeBSD.org>
AuthorDate: 2022-09-23 19:26:43 +0000
Commit:     Dries Michiels <driesm@FreeBSD.org>
CommitDate: 2022-09-23 19:35:33 +0000

    multimedia/emby-server(-devel): pass -r to daemon in the rc script
    
    Similar to the rr ports, pass -r to daemon so that the daemon restarts
    when crashed. The embedded dotNET sporadically crashes, this way the
    service atleast keeps running until a native dotNET build is available.
---
 multimedia/emby-server-devel/Makefile             | 1 +
 multimedia/emby-server-devel/files/emby-server.in | 2 +-
 multimedia/emby-server/Makefile                   | 2 +-
 multimedia/emby-server/files/emby-server.in       | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/multimedia/emby-server-devel/Makefile b/multimedia/emby-server-devel/Makefile
index cd2b02f08f14..7c869cbe0722 100644
--- a/multimedia/emby-server-devel/Makefile
+++ b/multimedia/emby-server-devel/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	emby-server
 DISTVERSION=	4.8.0.9
+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 50ddd780a819..8057bdcba11f 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="-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 b31b01b759d4..a1794fa11706 100644
--- a/multimedia/emby-server/Makefile
+++ b/multimedia/emby-server/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	emby-server
 DISTVERSION=	4.7.6.0
-PORTREVISION=	1
+PORTREVISION=	2
 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 50ddd780a819..8057bdcba11f 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="-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} \