From cafd733528bdeedbf1d007ed72487426b0b36d01 Mon Sep 17 00:00:00 2001 From: "jose.almendros" Date: Tue, 8 Sep 2020 11:53:53 +0200 Subject: [PATCH] Added update systemctl message --- pandora_agents/unix/pandora_agent.redhat.spec | 8 ++++++++ pandora_agents/unix/pandora_agent.spec | 6 ++++++ pandora_server/pandora_server.redhat.spec | 8 ++++++++ pandora_server/pandora_server.spec | 8 ++++++++ 4 files changed, 30 insertions(+) diff --git a/pandora_agents/unix/pandora_agent.redhat.spec b/pandora_agents/unix/pandora_agent.redhat.spec index 4c04836233..c5bbcbf04e 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -121,6 +121,14 @@ else /sbin/chkconfig pandora_agent_daemon on fi +if [ "$1" -gt 1 ] +then + + echo "If Pandora Agent daemon was running with init.d script," + echo "please stop it manually and start the service with systemctl" + +fi + %preun diff --git a/pandora_agents/unix/pandora_agent.spec b/pandora_agents/unix/pandora_agent.spec index fd1186794b..41c4bcfeb5 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -111,7 +111,13 @@ else chkconfig pandora_agent_daemon on fi +if [ "$1" -gt 1 ] +then + echo "If Pandora Agent daemon was running with init.d script," + echo "please stop it manually and start the service with systemctl" + +fi %preun diff --git a/pandora_server/pandora_server.redhat.spec b/pandora_server/pandora_server.redhat.spec index 164554b260..8fd17fa243 100644 --- a/pandora_server/pandora_server.redhat.spec +++ b/pandora_server/pandora_server.redhat.spec @@ -158,6 +158,14 @@ fi echo "Don't forget to start Tentacle Server daemon if you want to receive" echo "data using tentacle" +if [ "$1" -gt 1 ] +then + + echo "If Tentacle Server daemon was running with init.d script," + echo "please stop it manually and start the service with systemctl" + +fi + %preun # Upgrading diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index 237ae3b13e..d79e1fed73 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -149,6 +149,14 @@ fi echo "Don't forget to start Tentacle Server daemon if you want to receive" echo "data using tentacle" +if [ "$1" -gt 1 ] +then + + echo "If Tentacle Server daemon was running with init.d script," + echo "please stop it manually and start the service with systemctl" + +fi + exit 0 %preun