From fc7d57c0266cee92119b334dd0959b8a6ba4e3ff Mon Sep 17 00:00:00 2001 From: bryan Date: Tue, 15 Apr 2025 18:22:55 -0400 Subject: [PATCH] Make systemd noisier by default --- installJRMC | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/installJRMC b/installJRMC index dac69a8..644c458 100755 --- a/installJRMC +++ b/installJRMC @@ -1374,11 +1374,11 @@ set_service_vars() { fi # systemctl commands - RELOAD=(execute "${systemctl_prefix[@]}" daemon-reload) - ENABLE=(execute "${systemctl_prefix[@]}" enable --now) - DISABLE=(execute "${systemctl_prefix[@]}" disable --now) - IS_ENABLED=(execute "${systemctl_prefix[@]}" is-enabled -q) - IS_ACTIVE=(execute "${systemctl_prefix[@]}" is-active -q) + RELOAD=("${systemctl_prefix[@]}" daemon-reload) + ENABLE=("${systemctl_prefix[@]}" enable --now) + DISABLE=("${systemctl_prefix[@]}" disable --now) + IS_ENABLED=("${systemctl_prefix[@]}" is-enabled --quiet) + IS_ACTIVE=("${systemctl_prefix[@]}" is-active --quiet) [[ -d $service_dir ]] || execute sudo mkdir -p "$service_dir" @@ -1834,7 +1834,9 @@ main() { if ((SNAP_INSTALL_SWITCH)); then acquire_deb || { err "Could not download Media Center DEB package"; return 1; } install_package snapd podman - execute sudo systemctl enable --now snapd.socket + if ! systemctl is-active --quiet snapd.socket; then + execute sudo systemctl enable --now snapd.socket + fi if install_mc_snap; then echo "JRiver Media Center installed successfully from snap" else