Private
Public Access
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2068df471f |
+6
-1
@@ -201,7 +201,12 @@ for unit in evection-gunicorn evection-celery-worker evection-celery-beat; do
|
|||||||
"$APP_DIR/docs/deploy/${unit}.service" > "/etc/systemd/system/${unit}.service"
|
"$APP_DIR/docs/deploy/${unit}.service" > "/etc/systemd/system/${unit}.service"
|
||||||
done
|
done
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable --now evection-gunicorn evection-celery-worker evection-celery-beat
|
systemctl enable evection-gunicorn evection-celery-worker evection-celery-beat
|
||||||
|
# Not "enable --now": that only starts a service if it's stopped, so a
|
||||||
|
# re-run after a unit file changed (e.g. a new EVECTION_GUNICORN_BIND)
|
||||||
|
# would reload the daemon but leave the already-running process on its
|
||||||
|
# stale old ExecStart indefinitely. Always restart explicitly instead.
|
||||||
|
systemctl restart evection-gunicorn evection-celery-worker evection-celery-beat
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "==> Services installed. Checking status..."
|
echo "==> Services installed. Checking status..."
|
||||||
|
|||||||
Reference in new issue
Block a user