Fix run_ctrl_c.sh on newer systems

Systems that no longer support SysV init scripts and the service command
need to use systemctl.
This commit is contained in:
Markus Mäkelä 2019-07-01 17:13:09 +03:00
parent 0b18826fc1
commit b3eb5ccc81
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -1,6 +1,6 @@
#!/bin/bash
sudo service maxscale stop
sudo systemctl stop maxscale || sudo service maxscale stop
hm=`pwd`
$hm/start_killer.sh &