LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-09-2010, 08:55 AM   #1
k.king
Member
 
Registered: Oct 2005
Posts: 93

Rep: Reputation: 16
faxgetty not starting from inittab


I've installed and setup Hylafax in PCLOS 2009.2
I can get it to all work if from a console I su as root and type
faxgetty ttyS0
the console is "locked" running faxgetty until I kill it.
But while it is running everything works.

in my inittab there was a commented line at bottom
#t0:23:respawn:/usr/sbin/faxgetty ttyS0

I have uncommented it, saved it, restarted PC but faxgetty is not running.

Is there some logging on inittab that may highlight the problem, or any other suggestions. I have confirmed faxgetty does live in that folder.
 
Old 02-09-2010, 10:08 PM   #2
anotherlinuxuser
Member
 
Registered: Jan 2007
Location: Alberta Canada
Distribution: Fedora/Redhat/CentOS
Posts: 70

Rep: Reputation: 19
2 things to check:
1) If you are running X-Windows, you will need to add a 5 to the runlevel field of the inittab line, as in:

t0:235:respawn:/usr/sbin/faxgetty ttyS0

as the line you have in your post tells init to only run faxgetty in runlevels 2 and 3. X-Windows runs at runlevel 5.

Another possibility is that your distro may be using upstart instead of inittab for starting jobs. See if you have a /etc/event.d directory. If you do, you will need to create a file called /etc/event.d/ttyS0. These files are text files describing the job. For example:

# ttyS0 - faxgetty
#
# This service maintains a faxgetty on ttyS0 from the point the system is
# started until it is shut down again.

start on stopped rc2
start on stopped rc3
start on stopped rc4
start on started prefdm

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

respawn
exec /usr/sbin/faxgetty ttyS0

Last edited by anotherlinuxuser; 02-09-2010 at 10:10 PM.
 
1 members found this post helpful.
Old 02-10-2010, 04:46 AM   #3
k.king
Member
 
Registered: Oct 2005
Posts: 93

Original Poster
Rep: Reputation: 16
anotherlinuxuser
<<
If you are running X-Windows, you will need to add a 5 to the runlevel field of the inittab line, as in:
t0:235:respawn:/usr/sbin/faxgetty ttyS0
>>
yup is currently running on KDE3.5, grand plan is to have a dedicated fax gateway with no X but for now running on one unit.
Added in the 5 and all okay, many thanks.
 
  


Reply



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
since we have no /etc/inittab scrupul0us Ubuntu 19 12-09-2010 04:54 PM
inittab allensim81 Linux - Newbie 22 09-29-2009 04:12 AM
/etc/inittab cybersam45 Linux - Newbie 6 04-21-2009 06:29 AM
hylafax faxgetty trailer8713 Linux - Newbie 1 01-17-2008 12:50 PM
Inittab - starting a single program as user XYZ via bash IK81 Linux - General 1 10-04-2006 08:00 AM

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

All times are GMT -5. The time now is 04:34 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