| 1 |
# Systemd config for MRTG on Debian |
| 2 |
# 2021 Joao Eriberto Mota Filho <[email protected]> |
| 3 |
|
| 4 |
[Unit] |
| 5 |
Description=Multi Router Traffic Grapher |
| 6 |
Documentation=https://oss.oetiker.ch/mrtg/doc/index.en.html |
| 7 |
|
| 8 |
[Service] |
| 9 |
Environment=LANG=C |
| 10 |
ExecStart=/usr/bin/mrtg --daemon --fhs --user=mrtg |
| 11 |
KillMode=process |
| 12 |
LogsDirectory=mrtg |
| 13 |
LogsDirectoryMode=0750 |
| 14 |
PIDFile=/run/mrtg/mrtg.pid |
| 15 |
PrivateTmp=yes |
| 16 |
ReadOnlyDirectories=/etc |
| 17 |
RuntimeDirectory=mrtg |
| 18 |
StateDirectory=mrtg |
| 19 |
StateDirectoryMode=0750 |
| 20 |
Type=forking |
| 21 |
User=mrtg |
| 22 |
|
| 23 |
[Install] |
| 24 |
WantedBy=multi-user.target |