summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2021-07-10 21:28:44 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2021-07-10 21:28:44 +0100
commit3995a5f5677a3f911d57a8808d7aca8cd57a5821 (patch)
tree9520c33f95058aca8a6e76245a6b7e5654dd7b37 /systemd
parente9ccaea8c006eb1e2d8365352f7380cd79966888 (diff)
Add systemd socket supportv0.3.0
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