Fedora Linux Support Community & Resources Center
  #1  
Old 16th January 2007, 12:27 AM
sms043 Offline
Registered User
 
Join Date: Feb 2006
Posts: 34
ups service error no upstype defined.

If I start ups /etc/init.d/ups start
Starting genericups: Network UPS Tools - Generic UPS driver 1.31 (2.0.3)
No upstype set - see help text / man page!

However the upstype is set in upsd.conf
[Patriot]
driver = genericups
port = /dev/ttyS0
upstype = 7

I can start the driver using the upsd,conf file and it works
/sbin/genericups -a Patriot
Network UPS Tools - Generic UPS driver 1.31 (2.0.3)
UPS type: CyberPower Power99

So I don't understand why I can start the driver from the command line and it reads the upstype but if I start the ups service the driver does not read the upstype.

anyone have ideas or fixed the same problem ?

thanks
steve
Reply With Quote
  #2  
Old 10th March 2007, 05:29 PM
sms043 Offline
Registered User
 
Join Date: Feb 2006
Posts: 34
ups service error no upstype defined -fixed-

This code in the /etc/init.d/ups script was causing the problem.

# Get config.
if [ -f /etc/sysconfig/ups ]; then
. /etc/sysconfig/ups
else
SERVER="no"
fi

I had to edit /etc/sysconfig/ups and add upstype to the OPTIONS.

MODEL=genericups
# UPS device - needed if UPS is locally attached
DEVICE=/dev/ttyS0
# Any options to pass to $MODEL
# ex. for my TrippLite UPS, use
# OPTIONS="-t 5"
OPTIONS="-x upstype=7"
__________________
System: K8N + Sempron 3100+ 1GB 250G SATA 100G IDE
GeForce4 MX 4000
Reply With Quote
Reply

Tags
defined, error, service, ups, upstype

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
samba service error vkr0704 Using Fedora 2 25th February 2009 10:45 AM
GLIBC_2.0 not defined error? thesun Using Fedora 8 18th December 2006 09:00 AM
lpr: error - unable to print file: server-error-service-unavailable brand_d Using Fedora 0 31st May 2006 05:57 AM
Error -- [snip] symbol _ZN12wxICOHandlerC1Ev, version WXGTK2_2.4 not defined[snip] GreyWizzard Using Fedora 7 16th February 2006 03:18 PM
Up2Date Error - NameError: global name 'urllib' is not defined miles_underwood Using Fedora 0 19th August 2005 12:10 PM


Current GMT-time: 19:03 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat