Howto install PowerPanel (UPS)

Hi!

PowerPanel
missing services, restart and no changes

zypper in ./PPL-1.3.3-64bit.rpm
Loading repository data…
Reading installed packages…
Resolving package dependencies…

The following NEW package is going to be installed:
powerpanel

1 new package to install.
Overall download size: 119.4 KiB. Already cached: 0 B. After the operation, additional 330.3 KiB will
be used.
Continue? [y/n/v/…? shows all options] (y): y
Retrieving package powerpanel-1.3.3-0.x86_64 (1/1), 119.4 KiB (330.3 KiB unpacked)
PPL-1.3.3-64bit.rpm:
Package is not signed!

powerpanel-1.3.3-0.x86_64 (Plain RPM files cache): Signature verification failed [6-File is unsigned]
Abort, retry, ignore? [a/r/i] (a): i

Checking for file conflicts: …[done]
(1/1) Installing: powerpanel-1.3.3-0.x86_64 …[done]
Additional rpm output:
**/etc/init.d/pwrstatd: line 18: /etc/rc.status: No such file or directory
Fail to setup daemon startup script when system booting!

Other or alternative solution?**

Hi
You need to create a simple systemd file in /etc/systemd/system that will hook into those old scripts…

https://www.cyberpowersystems.com/product/software/power-panel-business/powerpanel-business-4-7-0-linux/

Thx, but me and support (Cyber Power) can’t solve either :frowning:

Thx, but this is a server monitor application, for many many machines.

Hi
Strange, all you need is something like;


#/etc/systemd/system/ppl.service


[Unit]
Description=Power Panel service
After=network.target


[Service]
Type=forking
Environment=LC_ALL=en_US.utf8
ExecStart=/bin/bash -c /usr/sbin/pwrstatd >/dev/null 2>&1


[Install]
WantedBy=multi-user.target

i tried it with Leap version, the installation start, stop, restart, status works but can’t start automatically.


#systemctl enable pwrstatd
pwrstatd.service is not a native service, redirecting to systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable pwrstatd
/sbin/insserv: No such file or directory

Hi
Add the following and see if that helps;


ln -s /usr/sbin/pwrstatd /usr/sbin/rcpwrstatd
ln -s /usr//sbin/service /usr/sbin/rcpwrstatd


ln -s /usr/sbin/pwrstatd /usr/sbin/rcpwrstatd
ln -s /usr/sbin/service /usr/sbin/rcpwrstatd
ln: failed to create symbolic link '/usr/sbin/rcpwrstatd': File exists

no change

systemctl enable pwrstatd
pwrstatd.service is not a native service, redirecting to systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable pwrstatd
/sbin/insserv: No such file or directory

Hi
OK, remove the softlink then;


rm /usr/sbin/rcpwrstatd

Install insserv;


zypper in  insserv-compat

It works, pwrstatd starts automatically at boot time.
(enable settings yast2-services-manages)
Thx!

I ran into this problem with powerpanel and wanted to update the thread with what worked for me.

  1. perform the normal install -ie-

    zypper in PPL_64bit_v1.4.1.rpm

  2. edit the systemd service definition to change the Exec* lines

[Unit]
Description=The monitor UPS software.
After=network.target network-online.target nss-lookup.target

[Service]
Type=forking
ExecStart=/usr/share/powerpanel/script/default_pwrstatd start
ExecStop=/usr/share/powerpanel/script/default_pwrstatd stop
ExecReload=/usr/share/powerpanel/script/default_pwrstatd reload

[Install]
WantedBy=multi-user.target

  1. restart the service

    systemctl disable pwrstatd.service

    systemctl enable pwrstatd.service

    systemctl start pwrstatd.service

  2. check the status

    systemctl status pwrstatd.service

    pwrstat -status

Hope this may help the next powerpanel user…

1 Like