feat(systemd): Add socket unit

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel
2025-01-02 00:36:05 +01:00
parent 2064d5093c
commit a7d68e24d3

17
etc/systemd/cunicu.socket Normal file
View File

@@ -0,0 +1,17 @@
# SPDX-FileCopyrightText: 2023-2025 Steffen Vogel <post@steffenvogel.de>
# SPDX-License-Identifier: Apache-2.0
[Unit]
Description=cunīcu mesh network daemon control socket
PartOf=cunicu.service
[Socket]
FileDescriptorName=control
ListenStream=%t/cunicu.sock
SocketUser=root
SocketGroup=cunicu
SocketMode=0660
RemoveOnStop=yes
[Install]
WantedBy=sockets.target