Skip to content

Commit 02a1641

Browse files
authored
Fixed restarting php daemon error. Ubuntu 16.04
```bash # cat /proc/version Linux version 4.4.0-21-generic (buildd@lgw01-21) (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2) ) hestiacp#37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 ```
1 parent 66ec022 commit 02a1641

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/v-change-sys-service-config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ if [ "$update" = 'yes' ] && [ "$restart" != 'no' ]; then
9595

9696
if [ "$service" = 'php' ]; then
9797
if [ "$WEB_SYSTEM" = "nginx" ]; then
98-
service=$(ls /usr/sbin/php*fpm* |cut -f 4 -d /)
98+
#service=$(ls /usr/sbin/php*fpm* |cut -f 4 -d /)
99+
service=$(service --status-all | grep -e '.*+.*php' | sed 's/.*\ //')
99100
else
100101
service=$WEB_SYSTEM
101102
fi

0 commit comments

Comments
 (0)