mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Added systemd and sysvinit startup for pandora_agent_daemon
This commit is contained in:
parent
e645f65e8e
commit
a9ae04cdc4
@ -541,8 +541,17 @@ install () {
|
|||||||
then
|
then
|
||||||
echo "Define 'pandora_agent=\"YES\"' in /etc/rc.conf to enable the daemon."
|
echo "Define 'pandora_agent=\"YES\"' in /etc/rc.conf to enable the daemon."
|
||||||
else
|
else
|
||||||
echo "Check your startup configuration to be sure Pandora FMS Agent is ready "
|
# Enable startup service
|
||||||
echo "to start automatically when system restarts":
|
if [ `command -v systemctl` ]
|
||||||
|
then
|
||||||
|
systemctl enable pandora_agent_daemon
|
||||||
|
elif [ `command -v chkconfig` ]
|
||||||
|
then
|
||||||
|
chkconfig pandora_agent_daemon on
|
||||||
|
else
|
||||||
|
echo "Check your startup configuration to be sure Pandora FMS Agent is ready "
|
||||||
|
echo "to start automatically when system restarts":
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restore the daemon script
|
# Restore the daemon script
|
||||||
|
Loading…
x
Reference in New Issue
Block a user