Re: [Apcupsd-users] Multiple Instances of apcupsd for Different UPSs in Ubuntu
Brought to you by:
adk0212
|
From: Ted M. <te...@mi...> - 2015-03-18 06:48:47
|
Hi Nick, On 3/17/2015 5:27 PM, Nick Looper wrote: > Hi All - > > I'm running apcupsd 3.14.13 (compiled it, as the latest version > wasn't available via the regular ubuntu sources). It works perfectly > for one UPS, but I'm trying to get it to work with a few other UPSs. > > I've vfd that with the appropriate changes to apcupsd.conf, I can > address the different UPSs one at a time. > > Per the manual, I know that I need different copies of apcupsd.conf > for each UPS. I've also created separate script dirs and files that > the respective .conf files can reference. > > The challenge is how to start multiple instances of apcupsd. As the manual details, you just run apcupsd with and -f and -P options to specify different PID files and conf files. Make sure you can do this by hand at the command prompt before messing with init scripts. A ps or top output should show the multiple instances. > The > sample init.d script in the manual is for Redhat, and I'm not really > sure what modifications to make so it will work in ubuntu (running > 14.04.2). > There are a couple ways to do it but here is one: Download apcupsd port source: http://askubuntu.com/questions/28372/how-do-i-get-the-source-code-of-packages-installed-through-apt-get Look through that to see how the person who created the package did it, they had to write an init script. The rest of the info you need is here: https://help.ubuntu.com/community/UbuntuBootupHowto Once you see how the porter did it, just use his script as a template to create multiple init scripts, one for each apcupsd instance, the only difference between them is each specifies a different config and pid, etc. Ted > Is anyone else successfully monitoring multiple UPSs in ubuntu? > > Thanks > > ------------------------------------------------------------------------------ > > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. > Take a look and join the conversation now. > http://goparallel.sourceforge.net/ > _______________________________________________ Apcupsd-users mailing > list Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apcupsd-users |