-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Pidfile handling and socket docs
Signed-off-by: Shubhranshu153 <[email protected]>
- Loading branch information
1 parent
63d6b58
commit 36a1ef7
Showing
3 changed files
with
53 additions
and
17 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 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,16 @@ | ||
[Unit] | ||
Description=finch daemon | ||
Documentation=https://runfinch.com | ||
After=network.target local-fs.target containerd.service | ||
Wants=network.target containerd.service | ||
Requires=finch.socket | ||
|
||
[Service] | ||
ExecStart=/usr/local/bin/finch-daemon --debug --socket-addr fd:// | ||
Type=notify | ||
Delegate=yes | ||
Restart=always | ||
RestartSec=5 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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,11 @@ | ||
[Unit] | ||
Description=Socket for finch daemon | ||
|
||
[Socket] | ||
ListenStream=/run/finch.sock | ||
SocketMode=0660 | ||
SocketUser=root | ||
SocketGroup=root | ||
|
||
[Install] | ||
WantedBy=sockets.target |