chiark / gitweb /
autopkgtest: adt-initscript: use restart to start
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 4 Feb 2025 17:28:24 +0000 (17:28 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Feb 2025 19:19:41 +0000 (19:19 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
adt/adt-initscript

index 84ebbfd3922e52589e9336de398c00c503c5494b..920ece300d77ba32a8cdc9f889c0241186c032c1 100755 (executable)
@@ -20,7 +20,15 @@ CHECK_FIREWALL=false
 USER=root
 END
 
-service hippotatd start
+# hippotatd is not actually running now because the init script check
+# if we have any configured endpoints, and doesn't run it if not.
+# With sysvinit, "start" works to start the deaemon.
+# With systemd, "start" doesn't work because systemd thought it
+# started it when it was installed.  There's apparently a "pidfile"
+# thing we could perhaps put in the LSB headers, but I couldn't find
+# any formal documentation of it.  Instead, "restart" ought to DTRT.
+service hippotatd restart
+
 curl http://localhost:8099/ | tee /dev/stderr | grep hippotat
 
 dpid=$(pidof hippotatd)