mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-11-03 13:50:38 +08:00
fix(module): update socket group, config file path, and start command
Signed-off-by: Adam Rizkalla <ajarizzo@gmail.com>
This commit is contained in:
committed by
Steffen Vogel
parent
bbc07477b2
commit
e073af34ab
@@ -21,6 +21,7 @@ backends:
|
|||||||
rpc:
|
rpc:
|
||||||
# Path to a Unix socket for management
|
# Path to a Unix socket for management
|
||||||
# and monitoring of the cunicu daemon.
|
# and monitoring of the cunicu daemon.
|
||||||
|
# Leave empty or set to "systemd" to use systemd socket.
|
||||||
socket: /run/cunicu.sock
|
socket: /run/cunicu.sock
|
||||||
|
|
||||||
# Start of cunīcu daemon will block until
|
# Start of cunīcu daemon will block until
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ in
|
|||||||
groups.cunicu = { };
|
groups.cunicu = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.etc."cunicu.yaml" = {
|
environment.etc."cunicu/cunicu.yaml" = {
|
||||||
source = settingsFormat.generate "cunicu.yaml" cfg.daemon.settings;
|
source = settingsFormat.generate "cunicu.yaml" cfg.daemon.settings;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -101,7 +101,7 @@ in
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "notify-reload";
|
Type = "notify-reload";
|
||||||
|
|
||||||
ExecStart = "${lib.getExe cfg.package} daemon --log-level 10";
|
ExecStart = "${lib.getExe cfg.package} daemon --log-level debug10 --config /etc/cunicu/cunicu.yaml";
|
||||||
|
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
NotifyAccess = "main";
|
NotifyAccess = "main";
|
||||||
@@ -236,7 +236,7 @@ in
|
|||||||
FileDescriptorName = "control";
|
FileDescriptorName = "control";
|
||||||
ListenStream = "%t/cunicu.sock";
|
ListenStream = "%t/cunicu.sock";
|
||||||
SocketUser = "root";
|
SocketUser = "root";
|
||||||
SocketGroup = "root";
|
SocketGroup = "cunicu";
|
||||||
SocketMode = "0660";
|
SocketMode = "0660";
|
||||||
RemoveOnStop = true;
|
RemoveOnStop = true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user