Files
Cactiplugin_thold/service/systemd/thold_daemon.service
T

52 lines
2.4 KiB
Desktop File

# +-------------------------------------------------------------------------+
# | Copyright (C) 2004-2025 The Cacti Group |
# | |
# | This program is free software; you can redistribute it and/or |
# | modify it under the terms of the GNU General Public License |
# | as published by the Free Software Foundation; either version 2 |
# | of the License, or (at your option) any later version. |
# | |
# | This program is distributed in the hope that it will be useful, |
# | but WITHOUT ANY WARRANTY; without even the implied warranty of |
# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# | GNU General Public License for more details. |
# +-------------------------------------------------------------------------+
# | Cacti: The Complete RRDtool-based Graphing Solution |
# +-------------------------------------------------------------------------+
# | This code is designed, written, and maintained by the Cacti Group. See |
# | about.php and/or the AUTHORS file for specific developer information. |
# +-------------------------------------------------------------------------+
# | http://www.cacti.net/ |
# +-------------------------------------------------------------------------+
# --------------------------------------------------------------------------
# To install this service, you will have to make a few changes. They
# include:
#
# - Change <CACTIDIR> to your installed Cacti directory
# - Change the mariadb.service to mysql.service if using the MySQL database
#
# Then follow these steps:
#
# - copy this file into /etc/systemd/system directory
# - run 'systemctl daemon-reload'
# - start the service using 'systemctl start thold_daemon'
# - check that the process is running using 'systemctl status thold_daemon'
# - enable the Thold Daemon from Console > Configuration > Settings > Thold/Alerting
[Unit]
Description=Cacti Threshold Daemon Service
Requires=mariadb.service
After=network.target auditd.service mariadb.service
[Service]
User=apache
Group=root
Type=forking
ExecStart=/usr/bin/php <CACTIDIR>/plugins/thold/thold_daemon.php
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target