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

List services to check

parent 806de204
No related branches found
No related tags found
No related merge requests found
...@@ -43,3 +43,10 @@ services="`checkrestart | awk '/^service/{print $2} /^systemctl/{print $3}'` \ ...@@ -43,3 +43,10 @@ services="`checkrestart | awk '/^service/{print $2} /^systemctl/{print $3}'` \
$EXTRAS_SERVICES_TO_RESTART" $EXTRAS_SERVICES_TO_RESTART"
[ ! -z "$services" ] && systemctl restart $services [ ! -z "$services" ] && systemctl restart $services
checkrestart checkrestart
echo -e "\tPlease check that the following services are up and running"
if [ "${WEB_SERVER}" == "apache2" ]
then
apache2ctl -S 2>/dev/null | awk '/namevhost/{print "https://"$4}' | sort -u | grep -v "127.0...1"
else
awk '/^[ \t]*(server_name|server_alias)/{gsub(/;$/, "", $2); print "https://"$2}' /etc/nginx/*-enabled/* | sort -u
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment