diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-06-18 15:50:03 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-06-18 17:19:25 +0300 |
commit | 7ac184752e96d098bb87767c26f1313323fbe961 (patch) | |
tree | 894945ab37cafc6b0d2017623bc6145224096b6a /etc | |
parent | a4fb4f70e7534d3365a803a7dd0453203337ff79 (diff) |
docker: replace systemd for servicev0.57.1
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 |