diff --git a/pandora_agents/unix/pandora_agent.redhat.spec b/pandora_agents/unix/pandora_agent.redhat.spec index 452d665fea..4bf4b1ce76 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -109,7 +109,7 @@ if [ ! -d /var/log/pandora ]; then mkdir -p /var/log/pandora fi -if [ `command -v sysctl` ]; +if [ `command -v systemctl` ]; then cp /usr/share/pandora_agent/pandora_agent_daemon.service /usr/lib/systemd/system/ chmod -x /usr/lib/systemd/system/pandora_agent_daemon.service diff --git a/pandora_agents/unix/pandora_agent.spec b/pandora_agents/unix/pandora_agent.spec index db893d7366..ddd8b5ceb0 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -100,7 +100,7 @@ cp -aRf /usr/share/pandora_agent/pandora_agent_logrotate /etc/logrotate.d/pandor mkdir -p /var/spool/pandora/data_out -if [ `command -v sysctl` ]; +if [ `command -v systemctl` ]; then cp /usr/share/pandora_agent/pandora_agent_daemon.service /usr/lib/systemd/system/ chmod -x /usr/lib/systemd/system/pandora_agent_daemon.service diff --git a/pandora_server/pandora_server.redhat.spec b/pandora_server/pandora_server.redhat.spec index 12c7517a4a..1af1a45817 100644 --- a/pandora_server/pandora_server.redhat.spec +++ b/pandora_server/pandora_server.redhat.spec @@ -111,7 +111,7 @@ exit 0 %post # Initial installation if [ "$1" = 1 ]; then - if [ `command -v sysctl` ]; + if [ `command -v systemctl` ]; then cp /usr/share/pandora_server/util/tentacle_serverd.service /usr/lib/systemd/system/ chmod -x /usr/lib/systemd/system/tentacle_serverd.service diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index 1ccb37ecbc..fc6bdcee1e 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -102,7 +102,7 @@ fi exit 0 %post -if [ `command -v sysctl` ]; +if [ `command -v systemctl` ]; then cp /usr/share/pandora_server/util/tentacle_serverd.service /usr/lib/systemd/system/ chmod -x /usr/lib/systemd/system/tentacle_serverd.service