mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-09-26 21:01:14 +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:
|
||||
# Path to a Unix socket for management
|
||||
# and monitoring of the cunicu daemon.
|
||||
# Leave empty or set to "systemd" to use systemd socket.
|
||||
socket: /run/cunicu.sock
|
||||
|
||||
# Start of cunīcu daemon will block until
|
||||
|
@@ -78,7 +78,7 @@ in
|
||||
groups.cunicu = { };
|
||||
};
|
||||
|
||||
environment.etc."cunicu.yaml" = {
|
||||
environment.etc."cunicu/cunicu.yaml" = {
|
||||
source = settingsFormat.generate "cunicu.yaml" cfg.daemon.settings;
|
||||
};
|
||||
|
||||
@@ -101,7 +101,7 @@ in
|
||||
serviceConfig = {
|
||||
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;
|
||||
NotifyAccess = "main";
|
||||
@@ -236,7 +236,7 @@ in
|
||||
FileDescriptorName = "control";
|
||||
ListenStream = "%t/cunicu.sock";
|
||||
SocketUser = "root";
|
||||
SocketGroup = "root";
|
||||
SocketGroup = "cunicu";
|
||||
SocketMode = "0660";
|
||||
RemoveOnStop = true;
|
||||
};
|
||||
|
Reference in New Issue
Block a user