Major Refactoring, Client can now be used as a library
Some checks failed
Build (artifact) / build (push) Failing after 1m3s
Some checks failed
Build (artifact) / build (push) Failing after 1m3s
This commit is contained in:
15
systemd/certman-exec.service
Normal file
15
systemd/certman-exec.service
Normal 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
34
systemd/certman.service
Normal 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
12
systemd/certman.socket
Normal 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
|
||||
Reference in New Issue
Block a user