Skip to content
Snippets Groups Projects
Verified Commit ac778714 authored by David Beniamine's avatar David Beniamine
Browse files

Defining extra services for restart

parent daccd346
Branches
No related tags found
No related merge requests found
......@@ -5,3 +5,6 @@ export DOMAIN="dev.tetras-libre.fr"
export SERVER_ADMIN="admin@dev.tetras-libre.fr"
# can be set to nginx
export WEB_SERVER=apache2
# You can define here some services that are badly detected by checkrestart
# but often need to be restarted after upgrade
export EXTRAS_SERVICES_TO_RESTART="systemd-logind"
......@@ -39,6 +39,7 @@ do
. $script
fi
done
systemctl restart systemd-logind
systemctl restart `checkrestart | awk '/^service/{print $2} /^systemctl/{print $3}'`
services="`checkrestart | awk '/^service/{print $2} /^systemctl/{print $3}'` \
$EXTRAS_SERVICES_TO_RESTART"
[ ! -z "$services" ] && systemctl restart $services
checkrestart
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment