From d88504c1d6b763e1438678f673a2f62de8d7c10f Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 22 Nov 2020 16:47:59 -0500 Subject: [PATCH 1/3] Set systemctl enabled on Jellyfin service This was not set for Fedora; I do not recall if this was just an oversight or was explicitly removed in the past; open to feedback there. Reported in the LUP Bug-A-Thon --- fedora/jellyfin.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fedora/jellyfin.spec b/fedora/jellyfin.spec index 13305488e2..74fe5bd292 100644 --- a/fedora/jellyfin.spec +++ b/fedora/jellyfin.spec @@ -127,6 +127,9 @@ if [ $1 -gt 1 ] ; then if [ "${service_state}" = "active" ]; then systemctl start jellyfin.service fi + if [ "${service_state}" != "active" ]; then + systemctl enable jellyfin.service + fi fi %systemd_post jellyfin.service From be4e485bd30f19811392ee1ddcc58df2d3f26504 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 22 Nov 2020 16:58:07 -0500 Subject: [PATCH 2/3] Make use of the $1 flag to set installed only --- fedora/jellyfin.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fedora/jellyfin.spec b/fedora/jellyfin.spec index 74fe5bd292..82ff947b3f 100644 --- a/fedora/jellyfin.spec +++ b/fedora/jellyfin.spec @@ -127,7 +127,8 @@ if [ $1 -gt 1 ] ; then if [ "${service_state}" = "active" ]; then systemctl start jellyfin.service fi - if [ "${service_state}" != "active" ]; then + if [ $1 -eq 1 ]; then + # On fresh install only, enable the jellyfin.service unit systemctl enable jellyfin.service fi fi From 5f135a4b469a1e8dbbc0e8dcfdb1d61496a81fb5 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 22 Nov 2020 17:01:13 -0500 Subject: [PATCH 3/3] Use --now to the enable to start too --- fedora/jellyfin.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedora/jellyfin.spec b/fedora/jellyfin.spec index 82ff947b3f..4f4a301876 100644 --- a/fedora/jellyfin.spec +++ b/fedora/jellyfin.spec @@ -129,7 +129,7 @@ if [ $1 -gt 1 ] ; then fi if [ $1 -eq 1 ]; then # On fresh install only, enable the jellyfin.service unit - systemctl enable jellyfin.service + systemctl enable --now jellyfin.service fi fi %systemd_post jellyfin.service