[TriLUG] What does action mean in /etc/rc.d/rc.sysinit?
Tanner Lovelace
trilug@trilug.org
05 Feb 2002 22:45:31 -0500
--=-Qf6c3sA+KLCoz74mhMHO
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
On Tue, 2002-02-05 at 13:06, Tom Bryan wrote:
> The following line in /etc/rc.d/rc.sysinit seems to be the one that's fai=
ling
> action $"Mounting local filesystems: " mount -a -t nonfs,smbfs,ncpfs -O=20
> no_netdev
>=20
> I don't know what "action" is. Once the system finishes booting, I see t=
hat=20
> the /usr/share partition has been mounted
Take a look at the file /etc/rc.d/init.d/functions. That's
where all the helper functions are usually located. In my
distribution (Mandrake 8.1), here is how action is defined:
# Run some action. Log its output.
action() {
gprintf_msg_rest "$@"
echo -n "$GPRINTF_MSG "
# libsafe support
if [ -r /etc/sysconfig/system ] && grep -q '^LIBSAFE=3Dyes$' \
/etc/sysconfig/system && [ -r /lib/libsafe.so.2 ]; then
LD_PRELOAD=3D/lib/libsafe.so.2
export LD_PRELOAD
fi
initlog $INITLOG_ARGS -c "$GPRINTF_REST" && success "$GPRINTF_MSG" ||\
failure "$GPRINTF_MSG"
rc=3D$?
echo
unset LD_PRELOAD
return $rc
}
Note that I've continued long lines using "\"...
Basically, it prints a message, sets up a few things (i.e.
if you're using libsafe), sets up logging, runs the command,
resets everything and then returns.
One thing you might want to make sure is that /usr/share
actually exists in the root directory (and is empty). That
could be giving an error... As far as action detecting a=20
bogus failure, I don't think so. I'd look elsewhere for the
problem...
Tanner
--=20
Tanner Lovelace | lovelace@wayfarer.org | http://wtl.wayfarer.org/
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
GPG Fingerprint =3D A66C 8660 924F 5F8C 71DA BDD0 CE09 4F8E DE76 39D4
GPG Key can be found at http://wtl.wayfarer.org/lovelace.gpg.asc
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
Those who are willing to sacrifice essential liberties for a little=20
order, will lose both and deserve neither. -- Benjamin Franklin=20
History teaches that grave threats to liberty often come in times
of urgency, when constitutional rights seem too extravagant to=20
endure. -- Justice Thurgood Marshall, 1989=20
--=-Qf6c3sA+KLCoz74mhMHO
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQA8YKbbzglPjt52OdQRAt/UAJ4yv2/VmQTdV3qkaNHJy2jfyGpLcgCgsmXi
kq3he2TiU7hJGP/6F2YJEUk=
=tieW
-----END PGP SIGNATURE-----
--=-Qf6c3sA+KLCoz74mhMHO--