diff options
Diffstat (limited to 'post-inst.sh')
-rw-r--r-- | post-inst.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/post-inst.sh b/post-inst.sh index b7b0cf60..9867c49f 100644 --- a/post-inst.sh +++ b/post-inst.sh @@ -15,13 +15,14 @@ configure() # stop services pkill -x redis-server - pgrep -x mysqld &>/dev/null && mysqladmin -u root shutdown + [[ -f /run/mysqld/mysqld.pid ]] && mysqladmin -u root shutdown [[ -f /run/crond.pid ]] && kill "$(cat /run/crond.pid)" pkill -f php-fpm pkill -f notify_push + killall postdrop + killall sendmail # cleanup all NCP extras - source /usr/local/etc/library.sh find /usr/local/bin/ncp -name '*.sh' | \ while read script; do cleanup_script $script; done |