v0.0.3 - To be come a daemon.
This commit is contained in:
28
ping_service.service
Normal file
28
ping_service.service
Normal 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
|
||||
Reference in New Issue
Block a user