(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:
@@ -159,7 +159,7 @@ sudo scripts/install-systemd --non-interactive
|
|||||||
```
|
```
|
||||||
|
|
||||||
The installer preserves an existing `/etc/pobsync/pobsync.env` unless you pass `--force-env`. It refreshes the installed
|
The installer preserves an existing `/etc/pobsync/pobsync.env` unless you pass `--force-env`. It refreshes the installed
|
||||||
app, Python dependencies, migrations, static files, and systemd services.
|
app, Python dependencies, migrations, static files, and restarts the systemd services so new Django code is loaded.
|
||||||
|
|
||||||
Then check:
|
Then check:
|
||||||
|
|
||||||
|
|||||||
@@ -464,7 +464,8 @@ else
|
|||||||
note_step "Create Django superuser" "SKIPPED"
|
note_step "Create Django superuser" "SKIPPED"
|
||||||
fi
|
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 [ "$WITH_NGINX" -eq 1 ]; then
|
||||||
if ! command -v nginx >/dev/null 2>&1; then
|
if ! command -v nginx >/dev/null 2>&1; then
|
||||||
|
|||||||
Reference in New Issue
Block a user