added systemd to packages
This commit is contained in:
parent
c77ccae89a
commit
837b73da28
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue