Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2012 13:39:32 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        RW <rwmaillists@googlemail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*
Message-ID:  <4FE1C484.7040204@infracaninophile.co.uk>
In-Reply-To: <20120620124729.7f50b781@gumby.homeunix.com>
References:  <alpine.BSF.2.00.1206201020550.40030@wojtek.tensor.gdynia.pl> <4FE18D93.4060809@FreeBSD.org> <20120620124729.7f50b781@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig6A906ED0E043D1C3D516CB94
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 20/06/2012 12:47, RW wrote:
> On Wed, 20 Jun 2012 09:45:07 +0100
> Matthew Seaman wrote:
>=20
>> #!/bin/sh
>> #
>> # Persuade vboxheadless to start before samba.
>>
>> # PROVIDE: precedence
>> # REQUIRE: vboxheadless
>> # BEFORE: samba
>>
>> :
>>
>> Make it executable.  Note -- the ':' does seem to be necessary.
>=20
> Why? None of the dummy scripts in the base system have a ":".

It seems I was mistaken.  As far as rcorder goes, an empty script is
just as good as a single null command:

% cat precedence
#!/bin/sh
#
# Persuade postgresql to start before spamassassin.

# PROVIDE: precedence
# REQUIRE: postgresql
# BEFORE: spamd

% rcorder /etc/rc.d/* /usr/local/etc/rc.d/* | grep -E
'postgresql|precedence|sa-spamd'
/usr/local/etc/rc.d/postgresql
/usr/local/etc/rc.d/precedence
/usr/local/etc/rc.d/sa-spamd

Hey -- I saved a whole two bytes.  Woohoo!

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew@infracaninophile.co.uk               Kent, CT11 9PW




--------------enig6A906ED0E043D1C3D516CB94
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/hxIQACgkQ8Mjk52CukIzoGQCbB7v3snboT1SU40oMiVm63lW9
KhgAnji7iOrSLmTBjPKHOXA0b4qqz+K/
=f1Va
-----END PGP SIGNATURE-----

--------------enig6A906ED0E043D1C3D516CB94--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FE1C484.7040204>