Skip to content

Commit

Permalink
Repair services
Browse files Browse the repository at this point in the history
  • Loading branch information
yalh76 committed Jan 22, 2019
1 parent 6f477e3 commit 4136a1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions scripts/restore
Expand Up @@ -107,6 +107,9 @@ ynh_restore_file "/etc/systemd/system/$app-uwsgi.service"
systemctl enable $app.service
systemctl enable $app-uwsgi.service


systemctl start "$app" "$app-uwsgi"

#=================================================
# RESTORE THE CRON FILE
#=================================================
Expand All @@ -127,6 +130,3 @@ ynh_restore_file "/etc/logrotate.d/$app"

#systemctl reload php5-fpm
systemctl reload nginx

systemctl start $app.service
systemctl start $app-uwsgi.service
7 changes: 2 additions & 5 deletions scripts/upgrade
Expand Up @@ -188,11 +188,8 @@ ynh_use_logrotate --non-append
ynh_add_systemd_config "$app" "mediadrop.service"
ynh_add_systemd_config "$app-uwsgi" "mediadrop-uwsgi.service"


yunohost service stop "$app"
yunohost service stop "$app-uwsgi"
yunohost service start "$app"
yunohost service start "$app-uwsgie"
systemctl stop "$app" "$app-uwsgi"
systemctl start "$app" "$app-uwsgi"

# Waiting start all services
sleep 30
Expand Down

0 comments on commit 4136a1b

Please sign in to comment.