OpenRC start-stop-daemon retry option misbehave
When trying to use the lxc init.d script to stop an Ubuntu lxc container we found that the --retry option is misbehaving when it's given a signal/timeout pair.
As described in systemd man the signal to be used for power off is SIGRTMIN+4 and for reboot SIGRTMIN+5.
When those values are used in /etc/conf.d/lxc.CONTAINTER_NAME we got the following error:
start-stop-daemon: SIGRTMIN+4' is not a valid signal
Then we tried to use the numeric version for SIGRTMIN+4 which is "38" and it doesn't work either. The signal is not sent to the container.
Eventually it was found that using "-38" instead will work but kinda indicates that the openrc start-stop-daemon is being funny when parsing the value for signal.