Skip to content

Commit 1b48cbf

Browse files
committed
php_dev: update script for 12.2
1 parent a97b6d1 commit 1b48cbf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/php_dev.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ fi
1414

1515
function start_service {
1616
echo -n "Starting $1... " ;
17-
sudo /sbin/service $1 start;
17+
sudo systemctl start $1.service;
18+
echo "";
1819
}
1920

2021
function stop_service {
2122
echo -n "Stopping $1... " ;
22-
sudo /sbin/service $1 stop;
23+
sudo systemctl stop $1.service;
24+
echo "";
2325
}
2426

2527
sudo -v; # cache password
2628

2729
if [ $mode == 'on' ]; then
2830
start_service apache2;
2931
start_service mysql;
30-
start_service postfix;
3132
else
3233
stop_service apache2;
3334
stop_service mysql;
34-
stop_service postfix;
3535
fi

0 commit comments

Comments
 (0)