(bugfix) Restart systemd services during native updates
Change the native installer to enable services and then explicitly restart web, worker, and scheduler so updated Django code is loaded after each install or update. Document that the installer refreshes app files and restarts systemd services as part of the normal update flow.
This commit is contained in:
@@ -464,7 +464,8 @@ else
|
||||
note_step "Create Django superuser" "SKIPPED"
|
||||
fi
|
||||
|
||||
run_step "Enable and start services" systemctl enable --now pobsync-web.service pobsync-worker.service pobsync-scheduler.service
|
||||
run_step "Enable services" systemctl enable pobsync-web.service pobsync-worker.service pobsync-scheduler.service
|
||||
run_step "Restart services" systemctl restart pobsync-web.service pobsync-worker.service pobsync-scheduler.service
|
||||
|
||||
if [ "$WITH_NGINX" -eq 1 ]; then
|
||||
if ! command -v nginx >/dev/null 2>&1; then
|
||||
|
||||
Reference in New Issue
Block a user