LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   faxgetty not starting from inittab (https://www.linuxquestions.org/questions/linux-software-2/faxgetty-not-starting-from-inittab-788007/)

k.king 02-09-2010 08:55 AM

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.

anotherlinuxuser 02-09-2010 10:08 PM

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

k.king 02-10-2010 04:46 AM

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.


All times are GMT -5. The time now is 02:55 PM.