-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of having a socket for a static and predefined user http, this patch allow to easily setup multiple sockets with your needed users. This is particulary useful when you want have socket for dedicated user. You can create an http socket (in /run/fcgiwrap-http.sock) with: $ systemctl enable [email protected] and if you need a socket for munin (in /run/fcgiwrap-munin.sock): $ systemctl enable [email protected]
- Loading branch information
Showing
5 changed files
with
17 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[Unit] | ||
Description=Simple CGI Server for user %I | ||
After=nss-user-lookup.target | ||
|
||
[Service] | ||
ExecStart=/usr/sbin/fcgiwrap -s /run/fcgiwrap-%I.sock | ||
User=%I |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Unit] | ||
Description=fcgiwrap socket for user %I | ||
|
||
[Socket] | ||
ListenStream=/run/fcgiwrap-%I.sock | ||
|
||
[Install] | ||
WantedBy=sockets.target |