Hylafax Mailing List Archives

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

Re: How to stop HylaFAX on a specific event?



-----BEGIN PGP SIGNED MESSAGE-----

On Mon, 21 Jul 1997 gorski@poboxes.com wrote:

> Hi!
> 
> I would like to stop HylaFAX if AC main power fails and the system is on
> battery backup power or HylaFAX should send a voice message of it's state.
> That's what I'm looking for. Does anyone has a solution?
> E.g.:	I haven't found an easy soltion to stop faxgetty from accepting calls.
> 	I have to edit /etc/ttys or init will restart faxgetty!

Ohh, good question. One way to do it is to have an /etc/ttys.normal
and an /etc/ttys.hylafax, and have your shutdown script do a "rm
/etc/ttys;ln /etc/ttys.normal /etc/ttys" for non-hylafax, and "rm
/etc/ttys;ln /etc/ttys.hylafax /etc/ttys;faxquit ttyxxx" for notmal use.

You will also have to do a "kill -HUP" on your "init" process. This
is done with "kill -HUP 1" under SunOS.


			Nico Garcia
			Engineer, CIRL 
			Mass. Eye and Ear Infirmary
			raoul@cirl.meei.harvard.edu

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBM9N55z/+ItycgIJRAQEt4gQAi71hnLJWyudCtlTUvM1c9pmCP3p0Rxi4
ehlYYj9mpecoPCmIoj0uqOFBESuXO7U7HSc+rBdQ/zayLKgwvy/C5V7s7nbclX/z
sIqVoo4Xw+HzG9iKTMx6OM7qSHMtpWJMV91ewFyyQkISx9CBiWU7AJAXfdGMEFxi
oEpIrLrtXDg=
=m1p3
-----END PGP SIGNATURE-----



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services