kiss server monitoring tool with email alerts
go
monitoring
1[Unit]
2Description=ServMon - KISS Server Monitoring with Email Alerts
3Documentation=https://pkg.rbrt.fr/servmon
4After=network-online.target
5Wants=network-online.target
6
7[Service]
8Type=simple
9User=root
10Group=root
11
12# Path to servmon binary (adjust if installed elsewhere)
13ExecStart=/usr/local/bin/servmon --config /etc/servmon/config.yaml
14
15# Restart policy
16Restart=always
17RestartSec=10
18
19# Logging
20StandardOutput=journal
21StandardError=journal
22SyslogIdentifier=servmon
23
24# Security hardening
25NoNewPrivileges=true
26PrivateTmp=true
27
28# Allow reading system information
29ProtectSystem=strict
30ProtectHome=true
31ReadOnlyPaths=/
32
33# Allow writing to specific paths if needed
34# ReadWritePaths=/var/log/servmon
35
36# Process limits
37LimitNOFILE=65536
38LimitNPROC=512
39
40# Environment
41Environment="PATH=/usr/local/bin:/usr/bin:/bin"
42
43[Install]
44WantedBy=multi-user.target