Enable SystemD services and other fixes an Suse rpm

This commit is contained in:
fermin831 2017-10-03 17:56:13 +02:00
parent 7b3a0d49f1
commit 485d132baa
2 changed files with 9 additions and 0 deletions

View File

@ -67,6 +67,7 @@ then
fi
%post
mkdir -p /var/log/pandora
chown pandora:root /var/log/pandora
if [ ! -d /etc/pandora ] ; then
mkdir -p /etc/pandora
@ -91,6 +92,9 @@ if [ ! -e /etc/pandora/collections ]; then
fi
cp -aRf /usr/share/pandora_agent/pandora_agent_logrotate /etc/logrotate.d/pandora_agent
# Enable the service on SystemD
systemctl enable pandora_agent_daemon.service
mkdir -p /var/spool/pandora/data_out
chkconfig pandora_agent_daemon on

View File

@ -99,6 +99,11 @@ exit 0
chkconfig pandora_server on
chkconfig tentacle_serverd on
# Enable the services on SystemD
systemctl enable tentacle_serverd.service
systemctl enable pandora_server.service
echo "/usr/share/pandora_server/util/pandora_db.pl /etc/pandora/pandora_server.conf" > /etc/cron.hourly/pandora_db
chmod 750 /etc/cron.hourly/pandora_db
cp -aRf /usr/share/pandora_server/util/pandora_server_logrotate /etc/logrotate.d/pandora_server