Major Refactoring, Client can now be used as a library
Some checks failed
Build (artifact) / build (push) Failing after 1m3s

This commit is contained in:
2026-03-16 21:48:32 +01:00
parent e6a2ba2f8b
commit e0f68788c0
45 changed files with 1359 additions and 1245 deletions

View File

@@ -0,0 +1,15 @@
[Unit]
Description=CertMan Executor daemon
Requires=certman.socket
After=network.target
[Service]
ExecStart=/usr/local/bin/certman executor
User=root
Group=root
KillSignal=SIGTERM
TimeoutStopSec=30
[Install]
WantedBy=multi-user.target

34
systemd/certman.service Normal file
View File

@@ -0,0 +1,34 @@
[Unit]
Description=CertMan Certificate Manager Daemon
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=certman
Group=certman
WorkingDirectory=/var/local/certman
ExecStart=/usr/local/bin/certman daemon start
ExecReload=/usr/local/bin/certman daemon reload
ExecStop=/usr/local/bin/certman daemon stop
Restart=on-failure
RestartSec=2s
NoNewPrivileges=true
PrivateTmp=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
StandardOutput=journal
StandardError=journal
TimeoutStartSec=30
TimeoutStopSec=30
[Install]
WantedBy=multi-user.target

12
systemd/certman.socket Normal file
View File

@@ -0,0 +1,12 @@
[Unit]
Description=certman hook daemon socket
[Socket]
ListenStream=/run/certman.sock
SocketUser=root
SocketGroup=certsock
SocketMode=0660
RemoveOnStop=true
[Install]
WantedBy=sockets.target