Koozali.org formerly Contribs.org

SME Server 9.2 and Eaton "Lansafe" v6.03/6.06 integration script

Hello everyone,

I have a confession to make. I have been using this below script to integrate Lansafe into sme server since the early days. I never thought anyone would want it, but now I need people to be aware of it, so someone can help me rewrite the integration script for system V (or, at least, point me in the right direction).

So here goes:

install the LS_603_linux_el4 version of Lansafe.
the software may, or may not initiate a 'beep' from the ups.
after installation, you should have an ls.init, available in the service list, 'ps -gauxww |grep ls.init or
 ps -gauxww |grep PowerMonitor

Code: [Select]

/sbin/e-smith/db configuration set ls.init service
/sbin/e-smith/db configuration setprop ls.init status enabled
ln -s /etc/rc.d/init.d/ls.init /etc.rc.d/rc7.d/S92PowerMonitor
ls -la /etc/rc.d/rc7.d [to make sure the link file is in there]

Now I'm not a coder. Never really got into it, and the stuff in the 'code' box I've nicked from somewhere else (just the names have been changed). But, by golly, it actually worked.

But this new systemV stuff, has me completely bamboozled. Can anyone assist?

In addition to this, Lansafe is now obsolete, the new software is called ipp "Eaton Intelligent Power Protector" and is only available as an .rpm file, whereas lansafe came with its own install.sh script.

Initially I'd need help getting Lansafe going on systemV as I am still running the older ups' Sola520 2200VA and Powerware 5130, and Lansafe works with both of these ups'.

Edit: forgot about a pre-existing signature.

----
Regards,

Louis

Offline Jean-Philippe Pialasse

  • *
  • 1,648
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: SME Server 9.2 and Eaton "Lansafe" v6.03/6.06 integration script
« Reply #1 on: March 29, 2021, 05:40:17 AM »
Hi Louis,

i am confuse about your post, for the following reason:
- you post on SME 9 contrib which is EOL, so i do not expect someone start developing something there

- i do not know any systemV, SysVinit and systemd. Which one are you refering?

- i can see bot script, archives and rpm on their page https://powerquality.eaton.com/support/software-drivers/downloads/de-intelligent-power-protector.asp?act=smtc&id=&key=&Quest_user_id=&leadg_Q_QRequired=&site=&menu=&cx=5&x=16&y=16


So are you needing help to port your software to SME 10 with systemd?

if yes ( i have not opened their software) but i expect their software provide the needed service files in /usr/lib/systemd/system

then you only have to make a folder and file this way
/usr/lib/systemd/system/servicename.service.d/51perso.conf

with in it
Code: [Select]
[Install]
WantedBy=sme-server.target

and do the same as you are used to for the db configuration

then execute
the actions scripts
/etc/e-smith/events/actions/systemd-reload

/etc/e-smith/events/actions/systemd-default

and start your script for the first time.
systemctl start servicename