diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/ncp-config.d/nc-limits.sh | 10 | ||||
-rw-r--r-- | etc/ncp-config.d/nc-nextcloud.sh | 8 | ||||
-rw-r--r-- | etc/ncp-config.d/nc-restore.sh | 8 |
3 files changed, 13 insertions, 13 deletions
diff --git a/etc/ncp-config.d/nc-limits.sh b/etc/ncp-config.d/nc-limits.sh index 8a7386b8..defced0f 100644 --- a/etc/ncp-config.d/nc-limits.sh +++ b/etc/ncp-config.d/nc-limits.sh @@ -30,16 +30,16 @@ configure() # need to restart php bash -c " sleep 3 - systemctl stop php7.0-fpm - systemctl stop mysqld + service php7.0-fpm stop + service mysqld stop sleep 0.5 - systemctl start php7.0-fpm - systemctl start mysqld + service php7.0-fpm start + service mysqld start " &>/dev/null & # redis max memory sed -i "s|maxmemory .*|maxmemory $REDISMEM_|" /etc/redis/redis.conf - systemctl restart redis + service redis restart } install() { :; } diff --git a/etc/ncp-config.d/nc-nextcloud.sh b/etc/ncp-config.d/nc-nextcloud.sh index 9b3a11fd..91e36583 100644 --- a/etc/ncp-config.d/nc-nextcloud.sh +++ b/etc/ncp-config.d/nc-nextcloud.sh @@ -73,11 +73,11 @@ install() systemctl enable redis-server # need to restart php - systemctl stop php7.0-fpm - systemctl stop mysqld + service php7.0-fpm stop + service mysqld stop sleep 0.5 - systemctl start php7.0-fpm - systemctl start mysqld + service php7.0-fpm start + service mysqld start } # service to randomize passwords on first boot diff --git a/etc/ncp-config.d/nc-restore.sh b/etc/ncp-config.d/nc-restore.sh index d0ec3ddb..044811ae 100644 --- a/etc/ncp-config.d/nc-restore.sh +++ b/etc/ncp-config.d/nc-restore.sh @@ -158,11 +158,11 @@ bash /usr/local/bin/nextcloud-domain.sh # restart PHP if needed [[ "$NEED_RESTART" == "1" ]] && \ bash -c " sleep 3 - systemctl stop php7.0-fpm - systemctl stop mysqld + service php7.0-fpm stop + service mysqld stop sleep 0.5 - systemctl start php7.0-fpm - systemctl start mysqld + service php7.0-fpm start + service mysqld start " &>/dev/null & EOF chmod +x /usr/local/bin/ncp-restore |