[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