We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a97b6d1 commit 1b48cbfCopy full SHA for 1b48cbf
bin/php_dev.sh
@@ -14,22 +14,22 @@ fi
14
15
function start_service {
16
echo -n "Starting $1... " ;
17
- sudo /sbin/service $1 start;
+ sudo systemctl start $1.service;
18
+ echo "";
19
}
20
21
function stop_service {
22
echo -n "Stopping $1... " ;
- sudo /sbin/service $1 stop;
23
+ sudo systemctl stop $1.service;
24
25
26
27
sudo -v; # cache password
28
29
if [ $mode == 'on' ]; then
30
start_service apache2;
31
start_service mysql;
- start_service postfix;
32
else
33
stop_service apache2;
34
stop_service mysql;
- stop_service postfix;
35
fi
0 commit comments