LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-01-2016, 07:05 PM   #1
User9
Member
 
Registered: Mar 2016
Location: Boston
Distribution: Arch Linux, Debian, Ubuntu Server, FreeBSD, FreeNAS
Posts: 53

Rep: Reputation: Disabled
Unhappy Won't source install CyberPower UPS deamon/service on Antergos


uname -a
Linux testing2 4.8.4-1-ARCH #1 SMP PREEMPT Sat Oct 22 18:26:57 CEST 2016 x86_64 GNU/Linux

This is on a test box using Antergos Linux as it takes to long to setup normal Arch over and over for testing.

CyberPower UPS: CP1350PFCLCD

Info on software (goto 'Resources' tab)
https://www.cyberpowersystems.com/pr...linux-software

Trying to install the software and deamon(powerpanel-132-x86_64.tar.gz) for above listed product. I have done it on Ubuntu live and it works fine.
On Antergos I get this . . .

Code:
[root@testing2 powerpanel-1.3.2]# ./install.sh 
/bin/cp: cannot create regular file '/etc/rc.d/pwrstatd': No such file or directory
/bin/chown: cannot access '/etc/rc.d/pwrstatd': No such file or directory
/bin/chmod: cannot access '/etc/rc.d/pwrstatd': No such file or directory
Fail to setup daemon startup script when system booting!
now antergos doesnt seem to have a rc.d so (only thing I could think of). . .

Code:
[root@testing2 etc]# mkdir rc.d
[root@testing2 powerpanel-1.3.2]# ./install.sh
/etc/rc.d/pwrstatd: line 17: /etc/rc.d/functions: No such file or directory
/etc/rc.d/pwrstatd: line 26: stat_busy: command not found
/etc/rc.d/pwrstatd: line 32: add_daemon: command not found
/etc/rc.d/pwrstatd: line 33: stat_done: command not found
Fail to setup daemon startup script when system booting!
Dont know what went wrong is rc.d part of init system and missing cause Antergos
uses Systemd ? But then why did it work on Ubuntu ?
 
Old 11-04-2016, 05:18 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,605

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
rc.d is part of the init system but then it depends on the distribution/version. The installer tries to determine the distribution "family" (i.e SuSe, debian, Ubuntu, Redhat or other). You did not post the Ubuntu version you are running but even though the latest uses systemd it still keeps the rcx.d directories for backwards compatibility and since the installer recognized Ubuntu it could write the files to those known directories. Antergos is an other distribution but the installer defaults do not work.

I have not played with Arch in awhile so can not help much but since it uses systemd you might want to create a unit file. You can find lots of information on systemd unit files.

https://wiki.archlinux.org/index.php/Systemd
https://coreos.com/docs/launching-co...-with-systemd/
 
1 members found this post helpful.
Old 11-04-2016, 07:24 PM   #3
User9
Member
 
Registered: Mar 2016
Location: Boston
Distribution: Arch Linux, Debian, Ubuntu Server, FreeBSD, FreeNAS
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
rc.d is part of the init system but then it depends on the distribution/version. The installer tries to determine the distribution "family" (i.e SuSe, debian, Ubuntu, Redhat or other). You did not post the Ubuntu version you are running but even though the latest uses systemd it still keeps the rcx.d directories for backwards compatibility and since the installer recognized Ubuntu it could write the files to those known directories. Antergos is an other distribution but the installer defaults do not work.

I have not played with Arch in awhile so can not help much but since it uses systemd you might want to create a unit file. You can find lots of information on systemd unit files.

https://wiki.archlinux.org/index.php/Systemd
https://coreos.com/docs/launching-co...-with-systemd/

First, thank you for your post its greatly appreciated.

Sorry I didn't post Ubuntu version Its a live USB I used it just to try out the install
to see if I could get to work at all. It's Ubuntu 16.04.1 LTS live USB.

Last night I came to the conclusion that rc.d is part of init and that Ubuntu probably has feature built in so it uses Systemd but still supports init scripts. What you said supports this. Looking at the install scripts I can tell that it has one for each OS it supports, the Arch script install to a init based system but it looks like it does install everything I just don't get the Systemd units. I'll take a look at those links and make my own Systemd service files. Hope this is all I need to do, want to finish BtrFS and ZFS testing.

Last edited by User9; 11-04-2016 at 08:33 PM.
 
  


Reply

Tags
install, source, ups


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pleasant CyberPower UPS Hardware Linux Support Surprise enorbet Linux - General 9 04-15-2016 05:11 PM
CyberPower CP1500C UPS and USB with NUT problem 81bones Linux - Hardware 4 09-23-2011 10:01 AM
CyberPower USB UPS - Configured but not connecting tskears Linux - Hardware 3 03-10-2007 04:53 PM
server won't boot after ups software install ntwkgirl Linux - Software 3 03-12-2006 02:38 PM
CyberPower UPS? Reasonably decent or junk? haertig Linux - Hardware 7 02-17-2006 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration