[TriLUG] What does action mean in /etc/rc.d/rc.sysinit?
Tanner Lovelace
lovelace at wayfarer.org
Tue Feb 5 22:45:31 EST 2002
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 failing
> action $"Mounting local filesystems: " mount -a -t nonfs,smbfs,ncpfs -O
> no_netdev
>
> I don't know what "action" is. Once the system finishes booting, I see that
> 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=yes$' \
/etc/sysconfig/system && [ -r /lib/libsafe.so.2 ]; then
LD_PRELOAD=/lib/libsafe.so.2
export LD_PRELOAD
fi
initlog $INITLOG_ARGS -c "$GPRINTF_REST" && success "$GPRINTF_MSG" ||\
failure "$GPRINTF_MSG"
rc=$?
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
bogus failure, I don't think so. I'd look elsewhere for the
problem...
Tanner
--
Tanner Lovelace | lovelace at wayfarer.org | http://wtl.wayfarer.org/
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
GPG Fingerprint = 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
order, will lose both and deserve neither. -- Benjamin Franklin
History teaches that grave threats to liberty often come in times
of urgency, when constitutional rights seem too extravagant to
endure. -- Justice Thurgood Marshall, 1989
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://www.trilug.org/pipermail/trilug/attachments/20020205/d13def10/attachment.pgp>
More information about the TriLUG
mailing list