finit icon indicating copy to clipboard operation
finit copied to clipboard

Finit starts services unexpectedly

Open mattiaswal opened this issue 4 months ago • 1 comments

admin@ha-kiosk:~$ initctl |grep container:dash
0     container:dash         stopped  [---2345----] container dash
admin@ha-kiosk:~$ 
admin@ha-kiosk:~$ sudo podman start dash
dash
admin@ha-kiosk:~$ initctl |grep container:dash
4681  container:dash         running  [---2345----] container dash
admin@ha-kiosk:~$ 

config:

# Start a container instance (%i) and redirect logs to /log/container
# Give podman enough time to properly shut down the container, kill:30
# The pre:script, which is responsibe for fetching a remote image, must
# not have a timeout.  The cleanup should take no longer than a minute.
sysv    log:prio:local1,tag:%i kill:30 pid:!/run/container:%i.pid \
	pre:0,/usr/sbin/container cleanup:60,/usr/sbin/container   \
	[2345]  :%i container -n %i -- container %i
admin@ha-kiosk:~$ 

mattiaswal avatar Sep 08 '25 13:09 mattiaswal

This looks like an issue with the pidfile plugin, it probably doesn't honor the stopped state and just forwards to Finit; "Hey, I'm happy to report the container is now running!"

Thanks for the report!

troglobit avatar Sep 08 '25 13:09 troglobit