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
|
mkdir -p /var/log/pandora
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ `command -v sysctl` ];
|
if [ `command -v systemctl` ];
|
||||||
then
|
then
|
||||||
cp /usr/share/pandora_agent/pandora_agent_daemon.service /usr/lib/systemd/system/
|
cp /usr/share/pandora_agent/pandora_agent_daemon.service /usr/lib/systemd/system/
|
||||||
chmod -x /usr/lib/systemd/system/pandora_agent_daemon.service
|
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
|
mkdir -p /var/spool/pandora/data_out
|
||||||
|
|
||||||
if [ `command -v sysctl` ];
|
if [ `command -v systemctl` ];
|
||||||
then
|
then
|
||||||
cp /usr/share/pandora_agent/pandora_agent_daemon.service /usr/lib/systemd/system/
|
cp /usr/share/pandora_agent/pandora_agent_daemon.service /usr/lib/systemd/system/
|
||||||
chmod -x /usr/lib/systemd/system/pandora_agent_daemon.service
|
chmod -x /usr/lib/systemd/system/pandora_agent_daemon.service
|
||||||
|
|
|
@ -111,7 +111,7 @@ exit 0
|
||||||
%post
|
%post
|
||||||
# Initial installation
|
# Initial installation
|
||||||
if [ "$1" = 1 ]; then
|
if [ "$1" = 1 ]; then
|
||||||
if [ `command -v sysctl` ];
|
if [ `command -v systemctl` ];
|
||||||
then
|
then
|
||||||
cp /usr/share/pandora_server/util/tentacle_serverd.service /usr/lib/systemd/system/
|
cp /usr/share/pandora_server/util/tentacle_serverd.service /usr/lib/systemd/system/
|
||||||
chmod -x /usr/lib/systemd/system/tentacle_serverd.service
|
chmod -x /usr/lib/systemd/system/tentacle_serverd.service
|
||||||
|
|
|
@ -102,7 +102,7 @@ fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ `command -v sysctl` ];
|
if [ `command -v systemctl` ];
|
||||||
then
|
then
|
||||||
cp /usr/share/pandora_server/util/tentacle_serverd.service /usr/lib/systemd/system/
|
cp /usr/share/pandora_server/util/tentacle_serverd.service /usr/lib/systemd/system/
|
||||||
chmod -x /usr/lib/systemd/system/tentacle_serverd.service
|
chmod -x /usr/lib/systemd/system/tentacle_serverd.service
|
||||||
|
|
Loading…
Reference in New Issue