From 6637c8a84dbe3aaca708940df4abe64b283eab28 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 23 May 2020 13:52:08 +0200 Subject: [PATCH] Tell systemctl to stfu about creating symlinks when enabling/disabling services --- data/helpers.d/postgresql | 2 +- data/helpers.d/systemd | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/helpers.d/postgresql b/data/helpers.d/postgresql index 0b027c78f..cce1f7959 100644 --- a/data/helpers.d/postgresql +++ b/data/helpers.d/postgresql @@ -295,7 +295,7 @@ ynh_psql_test_if_first_run() { # postgresql could be flagged as active even though the cluster is in # failed state because of how the service is configured..) systemctl is-active postgresql@$PSQL_VERSION-main -q || ynh_systemd_action --service_name=postgresql --action=restart - systemctl is-enabled postgresql -q || systemctl enable postgresql + systemctl is-enabled postgresql -q || systemctl enable postgresql --quiet # If this is the very first time, we define the root password # and configure a few things diff --git a/data/helpers.d/systemd b/data/helpers.d/systemd index 236781f8b..5c5fda852 100644 --- a/data/helpers.d/systemd +++ b/data/helpers.d/systemd @@ -58,7 +58,7 @@ ynh_add_systemd_config () { ynh_store_file_checksum --file="$finalsystemdconf" chown root: "$finalsystemdconf" - systemctl enable $service + systemctl enable $service --quiet systemctl daemon-reload } @@ -81,7 +81,7 @@ ynh_remove_systemd_config () { if [ -e "$finalsystemdconf" ] then ynh_systemd_action --service_name=$service --action=stop - systemctl disable $service + systemctl disable $service --quiet ynh_secure_remove --file="$finalsystemdconf" systemctl daemon-reload fi