From: Chris Sharp Date: Wed, 23 Jan 2019 01:47:15 +0000 (-0500) Subject: updating for systemd X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b903efeefd3fd055f47c810d2f792e80a846a9fd;p=contrib%2Fpines.git updating for systemd --- diff --git a/bricks/restart-services.sh b/bricks/restart-services.sh index f8cf19d..f3f003d 100755 --- a/bricks/restart-services.sh +++ b/bricks/restart-services.sh @@ -17,10 +17,10 @@ HEADS="brick02-head brick03-head brick04-head brick05-head brick06-head" case $1 in *help) Usage ;; "") Usage ;; -apache) COMMAND="/etc/init.d/apache2 restart" ;; -opensrf) COMMAND="/etc/init.d/opensrf restart" ;; -autogen) COMMAND="/etc/init.d/opensrf autogen" ;; -nginx) COMMAND="/etc/init.d/nginx restart" ;; +apache) COMMAND="systemctl restart apache2" ;; +opensrf) COMMAND="systemctl restart opensrf" ;; +autogen) COMMAND="su - opensrf -c /openils/bin/autogen.sh" ;; +nginx) COMMAND="systemctl restart nginx" ;; *) Usage ;; esac