|
|
@@ -1,8 +1,14 @@
|
|
|
[Unit]
|
|
|
Description=SmartBotic Runner Service
|
|
|
Documentation=https://github.com/smartbotic/smartbotic
|
|
|
+# Ordering only, deliberately not a Requires. The runner is built to survive
|
|
|
+# the webserver being absent - it retries node sync on reconnect_interval_ms
|
|
|
+# and re-registers on its heartbeat - so a hard requirement bought nothing even
|
|
|
+# when both ran on one host. It actively breaks a split deployment: with the
|
|
|
+# webserver on another machine the unit does not exist locally, and the runner
|
|
|
+# then refuses to start at all with "Unit smartbotic-webserver.service not
|
|
|
+# found". After= on a missing unit is simply ignored, which is what we want.
|
|
|
After=network.target smartbotic-webserver.service
|
|
|
-Requires=smartbotic-webserver.service
|
|
|
|
|
|
# Without PartOf, "systemctl restart smartbotic.target" starts nothing and
|
|
|
# stops nothing: a target is only a grouping, and restart/stop do not reach
|