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
No related branches found
No related tags found
No related merge requests found
...@@ -5,3 +5,6 @@ export DOMAIN="dev.tetras-libre.fr" ...@@ -5,3 +5,6 @@ export DOMAIN="dev.tetras-libre.fr"
export SERVER_ADMIN="admin@dev.tetras-libre.fr" export SERVER_ADMIN="admin@dev.tetras-libre.fr"
# can be set to nginx # can be set to nginx
export WEB_SERVER=apache2 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 ...@@ -39,6 +39,7 @@ do
. $script . $script
fi fi
done done
systemctl restart systemd-logind services="`checkrestart | awk '/^service/{print $2} /^systemctl/{print $3}'` \
systemctl restart `checkrestart | awk '/^service/{print $2} /^systemctl/{print $3}'` $EXTRAS_SERVICES_TO_RESTART"
[ ! -z "$services" ] && systemctl restart $services
checkrestart checkrestart
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment