Hylafax Mailing List Archives

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

Re: SysV configuration patch



On Tue, 17 Nov 1998, Nico Kadel-Garcia wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> 
> 
> I've noticed that the SysV init script, "hylafax", has a bunch of
> hard-coded options involving its location. Since there are several
> SysV style systems being used, and since the script is useful on *non*
> SysV systems, I've written a patch to make this a config.* option.
> This may be particularly useful to Linux users working from source,
> although I have not yet worked out how to configure all the various
> run-level setups. 

A good start, but a couple of problems.
Your patch appears to substitute /etc/init.d, /etc/rc0.d, & /etc/rc2.d
with the Linux /etc/rc.d/init.d, /etc/rc.d/rc0.d, & /etc/rc.d/rc2.d 

Somewhere configure needs to test for ethier /etc/init.d or /etc/rc.d/init.d
How about testing and assigning it to DIR_SYSVINIT_BASE with the default
being DIR_SYSVINIT_BASE=/etc (don't want to break existing systems)

Then you would have something like (lines folded for readability)
  if [ "$SYSVINIT" = auto ]; then
    if test -d $SYSVINIT_BASE_DIR/init.d -a -d $SYSVINIT_BASE_DIR/rc0.d -a -d
$SYSVINIT_BASE_DIR/rc0.d; then
        SYSVINIT=yes
        Note "Looks like a SysV-style init is used, enabling installation of
startup code."

That should work for existing SysV machines and for Linux.
 
While we are addressing the SysV init scripts, I've allways had a problem
	/etc/init.d/hylafax
	/etc/rc0.d/K80fax 
	/etc/rc2.d/S80fax
I would much prefer
	/etc/init.d/hylafax
	/etc/rc0.d/K80hylafax 
	/etc/rc2.d/S80hylafax
Anyone have objections to this one?

> 
> 			Nico Kadel-Garcia
> 			Senior Engineer, CIRL 
> 			Mass. Eye and Ear Infirmary
> 			raoul@cirl.meei.harvard.edu
> 
> -----BEGIN PGP SIGNATURE-----
> Version: 2.6.2
> 
> iQCVAwUBNlIDnD/+ItycgIJRAQGGFQQAhHm/j5EWxQ46JhxwgmNWKhY2HPkDhE6i
> r9PvYECCigSJ3q0YR4Blc+Hh8rWGKvjUeiR7HtTIuViBQSqmgjci45iw/nQ0axY5
> z/j1Jr7UYAp/d7kOxHgROciav/uwwsj/7GSZ6+HvhZazVn1cd/X0p3CuDxcHsrXM
> JRpMuNORxzQ=
> =UL98
> -----END PGP SIGNATURE-----
> 

-- 
Tim Rice			Multitalents	(707) 887-1469 (voice)
tim@trr.metro.net



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