Blame SOURCES/mrtg.service

64137f
# To customize, copy this file to /etc/systemd/system and edit there
64137f
#
64137f
# This unit facilitates starting of MRTG.  There are 2 options of
64137f
# how to run MRTG:
64137f
# - as a daemon (preferred); in this case please put
64137f
#   RunAsDaemon: yes in mrtg.conf (or use --daemon switch)
64137f
# - periodically - please see and enable mrtg.timer
64137f
#   Periodic settings need Type=oneshot set here
64137f
#
64137f
# Other recommended settings in mrtg.cfg for daemon mode:
64137f
# NoDetach: yes 
64137f
# If you set this, change below Type=simple
64137f
#
64137f
# Please disable /etc/crond.d/mrtg job when using this unit!
64137f
#
64137f
# do not enable both mrtg-as-a-daemon and timer at the same time
64137f
64137f
[Unit]
64137f
Description=Multi-router Traffic Grapher
64137f
After=syslog.target
64137f
64137f
[Service]
64137f
Environment=LANG=C
64137f
ExecStart=/usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok
64137f
# Type= settings cheatsheet:
64137f
# - RunAsDaemon: yes; NoDetach: yes :
64137f
#Type=simple
64137f
# - RunAsDaemon: yes; NoDetach: no :
64137f
#Type=forking
64137f
# - RunAsDaemon: no; (periodic invocation) :
64137f
#Type=oneshot
64137f
Type=simple
64137f
StandardOutput=syslog
64137f
64137f
[Install]
64137f
WantedBy=multi-user.target