Switch to systemctl in buildeg.sh as written by scripts/postbuild.sh.
authorJason Stephenson <jason@sigio.com>
Tue, 4 Dec 2018 19:32:42 +0000 (14:32 -0500)
committerJason Stephenson <jason@sigio.com>
Tue, 4 Dec 2018 19:32:42 +0000 (14:32 -0500)
Signed-off-by: Jason Stephenson <jason@sigio.com>
scripts/postbuild.sh

index 3b3c4e0..a58f773 100755 (executable)
@@ -126,7 +126,7 @@ cd /home/opensrf/Evergreen/Open-ILS/xul/staff_client
 make rigbeta rebuild permachine updates-client
 
 sudo /bin/bash -s <<EOF_RUNASROOT
-service apache2 stop
+systemctl stop apache2
 chown -R opensrf /var/lock/apache2
 cd /home/opensrf/Evergreen/Open-ILS/examples
 if [ "\\\$(/usr/sbin/apache2 -v | grep Apache/2 | cut -d. -f2)" -ge 4 ]; then
@@ -183,7 +183,7 @@ sudo -b /usr/local/bin/websocketd --port 7682 --ssl \
 # Start Evergreen up!
 osrf_control --localhost --start-all
 /openils/bin/autogen.sh
-sudo service apache2 restart
+sudo systemctl restart apache2
 
 # Setup crontab
 cat -  Open-ILS/examples/crontab.example > /home/opensrf/crontab <<EOF_CRONTAB