v0.0.3 - To be come a daemon.

This commit is contained in:
Kalzu Rekku
2025-12-29 23:17:09 +02:00
parent 6dd55cd2ba
commit 3ebf93d206
5 changed files with 310 additions and 47 deletions

28
ping_service.service Normal file
View File

@@ -0,0 +1,28 @@
[Unit]
Description=Network Ping and Traceroute Service
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=pingservice
Group=pingservice
WorkingDirectory=/opt/ping-service
ExecStart=/opt/ping-service/ping_service -config /opt/ping-service/config.yaml -v
Restart=always
RestartSec=10
# Security hardening
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/ping-service
# Logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=ping-service
[Install]
WantedBy=multi-user.target