Skip to content

Commit

Permalink
add new example systemd units
Browse files Browse the repository at this point in the history
  • Loading branch information
equinox0815 committed Jan 31, 2024
1 parent 49db14b commit f876db8
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 13 deletions.
13 changes: 0 additions & 13 deletions contrib/systemd/whawty-auth.socket

This file was deleted.

10 changes: 10 additions & 0 deletions contrib/systemd/whawty-auth_http.socket
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=whawty.auth authentication agent http sockets

[Socket]
Service=whawty-auth.service
FileDescriptorName=http
ListenStream=127.0.0.1:8080

[Install]
WantedBy=sockets.target
11 changes: 11 additions & 0 deletions contrib/systemd/whawty-auth_https.socket
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=whawty.auth authentication agent https sockets

[Socket]
Service=whawty-auth.service
FileDescriptorName=https
ListenStream=192.0.2.0:8443
ListenStream=127.0.0.1:8443

[Install]
WantedBy=sockets.target
15 changes: 15 additions & 0 deletions contrib/systemd/whawty-auth_saslauthd.socket
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=whawty.auth authentication agent saslauthd-compatible sockets

[Socket]
Service=whawty-auth.service
FileDescriptorName=saslauthd
ListenStream=/run/whawty/auth.sock
ListenStream=/var/spool/postfix/run/whawty/auth.sock
RemoveOnStop=true
SocketUser=whawty-auth
SocketGroup=whawty-auth
SocketMode=0660

[Install]
WantedBy=sockets.target

0 comments on commit f876db8

Please sign in to comment.