From: Ian Jackson Date: Tue, 4 Feb 2025 17:28:24 +0000 (+0000) Subject: autopkgtest: adt-initscript: use restart to start X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=204a36902d5d146bf4bc2cbde46271119b420670;p=hippotat.git autopkgtest: adt-initscript: use restart to start Signed-off-by: Ian Jackson --- diff --git a/adt/adt-initscript b/adt/adt-initscript index 84ebbfd..920ece3 100755 --- a/adt/adt-initscript +++ b/adt/adt-initscript @@ -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)