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?