On Fri, Feb 13, 2026 at 04:08:38PM +0300, evily wrote:
> I have two users (more is planned) named: user_1, user_2. They have
> sites:
>
> # cat /etc/httpd.conf
> server "user_1.example.org" {
> root "/user_1"
> location "*.cgi* {
> fastcgi socket "/run/user_1.sock"
> }
> }
> server "user_2.example.org" {
> root "/user_2"
> location "*.cgi* {
> fastcgi socket "/run/user_2.sock"
> }
> }
>
> And for them I'm creating sockets:
>
> # slowcgi -u user_1 -s /var/www/run/user_1.sock -p /var/www/
> # slowcgi -u user_2 -s /var/www/run/user_2.sock -p /var/www/
>
> And it works great!
>
> But!
>
> How should I startup these sockets after reboot? What is the best way?
See the 'EXAMPLES' section of rcctl(8).
To run two instances of a daemon, the most common way is to symlink the script
in /etc/rc.d/ that starts it.
If for some reason that's not an option or you're trying to do something more
complicated, let us know.