From 6b345283c9e2df5eff183a099208d6f1f439fb42 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sun, 23 Dec 2018 09:26:11 +0100 Subject: [PATCH] Use ynh_systemd_action in all command --- scripts/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 88dbd88..9916a9e 100755 --- a/scripts/install +++ b/scripts/install @@ -158,10 +158,11 @@ chown -R $app:$app /var/log/$app ynh_print_info "Setting up database and settings" #we need to start and stop the service so that initial app.db file is created and that we can set default data -systemctl start $app +ynh_systemd_action -l "INFO in server: Starting Gevent server" #sleep required on low spec like raspberryPi -sleep 5s -systemctl stop $app +sleep 1s +ynh_systemd_action -a stop + #set database settings as per conf file conf="\"UPDATE settings SET $(. <(echo -E echo $(<../conf/init_calibre_db_settings))) WHERE ID=1\"" @@ -216,7 +217,6 @@ fi #================================================= ynh_print_info "Reload nginx and start $app" systemctl reload nginx -#systemctl start $app ynh_systemd_action -l "INFO in server: Starting Gevent server" #=================================================