From f876db8b7667cfbdadc4dc5e76a3f9931ce89918 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 31 Jan 2024 01:09:37 +0100 Subject: [PATCH] add new example systemd units --- contrib/systemd/whawty-auth.socket | 13 ------------- contrib/systemd/whawty-auth_http.socket | 10 ++++++++++ contrib/systemd/whawty-auth_https.socket | 11 +++++++++++ contrib/systemd/whawty-auth_saslauthd.socket | 15 +++++++++++++++ 4 files changed, 36 insertions(+), 13 deletions(-) delete mode 100644 contrib/systemd/whawty-auth.socket create mode 100644 contrib/systemd/whawty-auth_http.socket create mode 100644 contrib/systemd/whawty-auth_https.socket create mode 100644 contrib/systemd/whawty-auth_saslauthd.socket diff --git a/contrib/systemd/whawty-auth.socket b/contrib/systemd/whawty-auth.socket deleted file mode 100644 index 5d29d3f..0000000 --- a/contrib/systemd/whawty-auth.socket +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=whawty.auth authentication agent sockets - -[Socket] -#ListenStream=127.0.0.1:888 -ListenStream=/var/run/whawty/auth.sock -RemoveOnStop=true -SocketUser=whawty-auth -SocketGroup=whawty-auth -SocketMode=0660 - -[Install] -WantedBy=sockets.target diff --git a/contrib/systemd/whawty-auth_http.socket b/contrib/systemd/whawty-auth_http.socket new file mode 100644 index 0000000..b4994da --- /dev/null +++ b/contrib/systemd/whawty-auth_http.socket @@ -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 diff --git a/contrib/systemd/whawty-auth_https.socket b/contrib/systemd/whawty-auth_https.socket new file mode 100644 index 0000000..4a1cbee --- /dev/null +++ b/contrib/systemd/whawty-auth_https.socket @@ -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 diff --git a/contrib/systemd/whawty-auth_saslauthd.socket b/contrib/systemd/whawty-auth_saslauthd.socket new file mode 100644 index 0000000..e75dca7 --- /dev/null +++ b/contrib/systemd/whawty-auth_saslauthd.socket @@ -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