HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] faxgetty/iaxmodem question



* Vladimir Angelov <vladi20@xxxxxx> [090119 09:35]:
> 
> Hello,
> 
> I am using Hylafax 4.4.4 on Ubuntu 8.10 2.6.27-7-server and my
> question is do i need to create multiple files for faxgetty and
> iaxmodem in /etc/event.d/ in order to spawn multiple instances of
> iaxmodem and faxgetty because i have more then one fax number on this
> asterisk or there is another way to set it up? On the previous Linux
> versions there was /etc/inittab and i was able to put all the "spawns"
> into it but now upstart is a bit different. Your help is much
> appriciated! Thank you!

Yes, for upstart, it's one "file" per thing, instead of one "line" per
thing in the usual init.  I know, it sucks...

	mountie@corn:/etc/event.d$ ls -l *-ttyIAX?
	-rw-r--r-- 1 root root 321 2009-01-19 09:39 faxgetty-ttyIAX0
	-rw-r--r-- 1 root root 213 2009-01-19 09:39 faxgetty-ttyIAX1
	-rw-r--r-- 1 root root 213 2009-01-19 09:39 faxgetty-ttyIAX2
	-rw-r--r-- 1 root root 213 2009-01-19 09:39 faxgetty-ttyIAX3
	-rw-r--r-- 1 root root 213 2009-01-19 09:39 faxgetty-ttyIAX4
	-rw-r--r-- 1 root root 213 2009-01-19 09:39 faxgetty-ttyIAX5
	-rw-r--r-- 1 root root 213 2009-01-19 09:39 faxgetty-ttyIAX6
	-rw-r--r-- 1 root root 213 2009-01-19 09:39 faxgetty-ttyIAX7
	-rw-r--r-- 1 root root 213 2009-01-19 09:39 faxgetty-ttyIAX8
	-rw-r--r-- 1 root root 213 2009-01-19 09:39 faxgetty-ttyIAX9
	-rw-r--r-- 1 root root 213 2008-09-05 11:23 iaxmodem-ttyIAX0
	-rw-r--r-- 1 root root 213 2008-09-05 11:24 iaxmodem-ttyIAX1
	-rw-r--r-- 1 root root 213 2008-09-05 11:24 iaxmodem-ttyIAX2
	-rw-r--r-- 1 root root 213 2008-09-05 11:24 iaxmodem-ttyIAX3
	-rw-r--r-- 1 root root 213 2008-09-05 11:24 iaxmodem-ttyIAX4
	-rw-r--r-- 1 root root 213 2008-09-05 11:24 iaxmodem-ttyIAX5
	-rw-r--r-- 1 root root 213 2008-09-05 11:24 iaxmodem-ttyIAX6
	-rw-r--r-- 1 root root 213 2008-09-05 11:24 iaxmodem-ttyIAX7
	-rw-r--r-- 1 root root 213 2008-09-05 11:24 iaxmodem-ttyIAX8
	-rw-r--r-- 1 root root 213 2008-09-05 11:24 iaxmodem-ttyIAX9
	mountie@corn:/etc/event.d$ cat iaxmodem-ttyIAX0
	# ttyIAX0 - IAXModem
	#

	start on stopped rc2
	start on stopped rc3
	start on stopped rc4
	start on stopped rc5

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

	respawn
	exec /usr/local/sbin/iaxmodem ttyIAX0
	mountie@corn:/etc/event.d$ cat faxgetty-ttyIAX0
	# ttyIAX9 - faxgetty
	#

	start on stopped rc2
	start on stopped rc3
	start on stopped rc4
	start on stopped rc5

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

	respawn
	exec /usr/local/sbin/faxgetty ttyIAX0


-- 
Aidan Van Dyk                                             aidan@xxxxxxxx
Senior Software Developer                          +1 215 825-8700 x8103
iFAX Solutions, Inc.                                http://www.ifax.com/

Attachment: signature.asc
Description: Digital signature




Project hosted by iFAX Solutions