I run armtix (arm64 artix) on a raspberry pi 4. I find that the
sv stop fcgiwrap command leaves behind a unix socket node in
/run/fcgiwrap.sock. If I then run the
sv start fcgiwrap command it fails (error message is
Failed to bind: Address already in use). I changed the run command to
#!/bin/sh
rm -f /run/fcgiwrap.sock
exec fcgiwrap -s unix:/run/fcgiwrap.sock 2>&1
and then the stop / start commands work fine.
Added fcgiwrap.finish (https://gitea.artixlinux.org/packagesF/fcgiwrap-runit/src/branch/master/trunk/fcgiwrap.finish) to the fcgiwrap-runit service which handles the removal. Thanks for the report.
just to be sure I tried that and it works if I add that script as
/etc/runit/sv/fcgiwrap/finish I did try calling it fcgiwrap.finish, but that didn't worlk.
Yes. That's why it will be installed as /etc/runit/sv/fcgiwrap/finish.