This commit is contained in:
2026-07-03 18:54:41 +02:00
+56
View File
@@ -3887,6 +3887,62 @@ if $START_AT_BOOTTIME ; then
## - ## -
if $SYSTEMD_SUPPORTED ; then if $SYSTEMD_SUPPORTED ; then
_failed=false
if [[ ! -f /etc/systemd/system/sympa.service.d/override.conf ]]; then
echo "mkdir \"/etc/systemd/system/sympa.service.d\"" >> $_log_file 2>&1
mkdir "/etc/systemd/system/sympa.service.d" >> $_log_file 2>&1
if [[ $? -gt 0 ]] ; then
_failed=true
fi
fi
echo "cat <<'EOF' /etc/systemd/system/sympa.service.d/override.conf
[Unit]
After=mysql.service mariadb.service
Requires=mysql.service
EOF" >> $_log_file
cat <<'EOF' > /etc/systemd/system/sympa.service.d/override.conf 2>> $_log_file
[Unit]
After=mysql.service mariadb.service
Requires=mysql.service
EOF
if [[ $? -gt 0 ]] ; then
_failed=true
fi
if ${_failed}; then
echo_failed
error "Adjusting '/etc/systemd/system/sympa.service.d/override.conf' failed!\n
See '${_log_file}' for further informations."
echononl " continue anyway [yes/no]: "
read OK
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
echononl "Wrong entry! - repeat [yes/no]: "
read OK
done
[[ $OK = "yes" ]] || fatal "Abbruch durch User"
fi
# - Reload systemd daemon
# -
echo "" >> $_log_file
echo "## - Reload systemd daemon" >> $_log_file
echo "## -" >> $_log_file
echononl "\tReload systemd daemon"
echo "systemctl daemon-reload" >> $_log_file
systemctl daemon-reload >> $_log_file 2>&1
if [ "$?" = "0" ]; then
echo_ok
else
echo_failed
error "Reloading systemd daemon failed! \n
See '${_log_file}' for further informations."
fi
# - Sympa service # - Sympa service
# - # -
echo "" >> $_log_file echo "" >> $_log_file