diff --git a/README.md b/README.md index 340f058..5653078 100644 --- a/README.md +++ b/README.md @@ -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 -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: diff --git a/scripts/install-systemd b/scripts/install-systemd index ef844d2..19628d9 100755 --- a/scripts/install-systemd +++ b/scripts/install-systemd @@ -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