summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rw-r--r--systemd/fwdsms.service1
-rw-r--r--systemd/fwdsms.socket11
2 files changed, 11 insertions, 1 deletions
diff --git a/systemd/fwdsms.service b/systemd/fwdsms.service
index a095805..3f3af29 100644
--- a/systemd/fwdsms.service
+++ b/systemd/fwdsms.service
@@ -7,7 +7,6 @@ Description=SMS-to-email Forwarder
[Service]
ExecStart=fwdsms
DynamicUser=true
-RuntimeDirectory=fwdsms
[Install]
WantedBy=multi-user.target
diff --git a/systemd/fwdsms.socket b/systemd/fwdsms.socket
new file mode 100644
index 0000000..8914600
--- /dev/null
+++ b/systemd/fwdsms.socket
@@ -0,0 +1,11 @@
+# SPDX-FileCopyrightText: © 2021 Grégoire Duchêne <gduchene@awhk.org>
+# SPDX-License-Identifier: ISC
+
+[Unit]
+Description=fwdsms Socket
+
+[Socket]
+ListenStream=%t/fwdsms
+
+[Install]
+WantedBy=sockets.target