[ Redirected from [EMAIL PROTECTED] to [EMAIL PROTECTED] ]
Jimmy Olgeni schrieb:
>
> It would be nice to have a /etc/rc.shutdown.local called by
> /etc/rc.shutdown,
> to implement custom shutdown procedures. This is currently done by
> editing rc.shutdown, but you have to remember about it when you run
> mergemaster.
>
> Just a thought :)
Better still would be /usr/local/etc/rc.d/*.sh called automatically
with parameter stop. To do so, insert
for dir in ${local_startup}; do
if [ -d "${dir}" ]; then
for script in ${dir}/*.sh; do
if [ -x "${script}" ]; then
(set -T
trap 'exit 1' 2
${script} stop)
fi
done
fi
done
echo .
into /etc/rc.shutdown. (Script shamelessly copied from /etc/rc), changed
"start" to "stop".
HTH
-Christoph Sold
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message