Artix Linux Forum

Init systems => runit => Topic started by: replabrobin on 08 December 2021, 12:13:27

Title: minor bug in fcgiwrap-runit
Post by: replabrobin on 08 December 2021, 12:13:27
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
Code: [Select]
#!/bin/sh
rm -f /run/fcgiwrap.sock
exec fcgiwrap -s unix:/run/fcgiwrap.sock 2>&1
and then the stop / start commands work fine.
Title: Re: minor bug in fcgiwrap-runit
Post by: konimex on 08 December 2021, 12:52:43
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.
Title: Re: minor bug in fcgiwrap-runit
Post by: replabrobin on 08 December 2021, 17:21:31
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.
Title: Re: minor bug in fcgiwrap-runit
Post by: konimex on 09 December 2021, 09:58:06
Yes. That's why it will be installed as /etc/runit/sv/fcgiwrap/finish.