diff --git a/conf/supervisord.conf b/conf/supervisord.conf index b90f0c8..c1d205c 100644 --- a/conf/supervisord.conf +++ b/conf/supervisord.conf @@ -1,5 +1,6 @@ [supervisord] -; You need to replace with correct absolute path +nodaemon=true +user=root ; email notifier (if async jobs processing is enabled) [program:tracim_mail_notifier] @@ -39,4 +40,4 @@ stdout_logfile =/tmp/rq_database_worker.log redirect_stderr=true autostart=true autorestart=true -environment=TRACIM_CONF_PATH=__FINALPATH__/backend/development.ini \ No newline at end of file +environment=TRACIM_CONF_PATH=__FINALPATH__/backend/development.ini diff --git a/scripts/change_url b/scripts/change_url index 76a90e0..1a58073 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -78,13 +78,6 @@ fi #================================================= # STANDARD MODIFICATIONS -#================================================= -# STOP SYSTEMD SERVICE -#================================================= -ynh_script_progression --message="Stopping a systemd service..." - -ynh_supervisor_action --service_name=$app --action="stop" --log_path="/var/log/supervisor/supervisord.log" - #================================================= # MODIFY URL IN NGINX CONF #================================================= @@ -141,7 +134,6 @@ ynh_script_progression --message="Starting a systemd service..." # Start a systemd service ynh_systemd_action --service_name="uwsgi" --action="restart" --log_path="/var/log/uwsgi/app/$app-web.log" --line_match="spawned uWSGI" -ynh_supervisor_action --service_name="$app" --action="restart" --log_path="/var/log/supervisor/supervisord.log" #================================================= # RELOAD NGINX diff --git a/scripts/install b/scripts/install index 51fa273..8a14040 100755 --- a/scripts/install +++ b/scripts/install @@ -240,7 +240,6 @@ ynh_script_progression --message="Starting a systemd service..." # Start a systemd service ynh_systemd_action --service_name="uwsgi" --action="restart" --log_path="/var/log/uwsgi/app/$app-web.log" --line_match="spawned uWSGI" -ynh_supervisor_action --service_name="$app" --action="restart" --log_path="/var/log/supervisor/supervisord.log" #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 56a5e6c..e398bdd 100755 --- a/scripts/restore +++ b/scripts/restore @@ -148,7 +148,6 @@ ynh_script_progression --message="Starting a systemd service..." # Start a systemd service ynh_systemd_action --service_name="uwsgi" --action="restart" --log_path="/var/log/uwsgi/app/$app-web.log" --line_match="spawned uWSGI" -ynh_supervisor_action --service_name="$app" --action="restart" --log_path="/var/log/supervisor/supervisord.log" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 55da268..f9b5261 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -56,13 +56,6 @@ ynh_abort_if_errors #================================================= # STANDARD UPGRADE STEPS -#================================================= -# STOP SYSTEMD SERVICE -#================================================= -ynh_script_progression --message="Stopping a systemd service..." - -ynh_supervisor_action --service_name=$app --action="stop" --log_path="/var/log/supervisor/supervisord.log" - #================================================= # ENSURE DOWNWARD COMPATIBILITY #================================================= @@ -210,7 +203,6 @@ ynh_script_progression --message="Starting a systemd service..." # Start a systemd service ynh_systemd_action --service_name="uwsgi" --action="restart" --log_path="/var/log/uwsgi/app/$app-web.log" --line_match="spawned uWSGI" -ynh_supervisor_action --service_name="$app" --action="restart" --log_path="/var/log/supervisor/supervisord.log" #================================================= # RELOAD NGINX