Merge branch 'ent-9594-habilitar-arranque-de-agente-sf-para-linux-en-el-tar' into 'develop'
Added systemd and sysvinit startup for pandora_agent_daemon See merge request artica/pandorafms!6261
This commit is contained in:
commit
52b1887a19
|
@ -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…
Reference in New Issue