mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Clarify Dispatcher-Service.md for systemd (#14575)
There are two systemd service files suggested for use, only one should be used. My changes clarify the usage and adjust the librenms-watchdog.service to install as librenms.service as that appears to be the intention from #12188
This commit is contained in:
@@ -169,22 +169,25 @@ Once the LibreNMS service is installed, the cron scripts used by LibreNMS to sta
|
||||
A systemd unit file is provided - the sysv and upstart init scripts
|
||||
could also be used with a little modification.
|
||||
|
||||
### systemd
|
||||
### systemd service
|
||||
|
||||
A systemd unit file can be found in `misc/librenms.service`. To
|
||||
install run `cp /opt/librenms/misc/librenms.service
|
||||
/etc/systemd/system/librenms.service && systemctl enable --now
|
||||
librenms.service`
|
||||
|
||||
### systemd-watchdog
|
||||
### systemd service with watchdog
|
||||
|
||||
This service file is an alternative to the above service file. It uses the systemd WatchdogSec= option to restart the service if it does not receive a keep-alive from the running process.
|
||||
|
||||
A systemd unit file can be found in `misc/librenms-watchdog.service`. To
|
||||
install run `cp /opt/librenms/misc/librenms-watchdog.service
|
||||
/etc/systemd/system/librenms-watchdog.service && systemctl enable --now
|
||||
librenms-watchdog.service`
|
||||
/etc/systemd/system/librenms.service && systemctl enable --now
|
||||
librenms.service`
|
||||
|
||||
This requires: python3-systemd (or python-systemd on older systems)
|
||||
or https://pypi.org/project/systemd-python/
|
||||
If you run this systemd service without python3-systemd it will restart every 30 seconds.
|
||||
|
||||
### OS-Specific Instructions
|
||||
|
||||
|
Reference in New Issue
Block a user