mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-09-26 21:01:14 +08:00
feat(systemd): Add socket unit
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
17
etc/systemd/cunicu.socket
Normal file
17
etc/systemd/cunicu.socket
Normal 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
|
Reference in New Issue
Block a user