Re: [rc update] sshd no longer starts at boot

From: Manfred Antar <null_at_pozo.com>
Date: Sun, 04 Dec 2005 10:30:05 -0800
At 10:15 AM 12/4/2005, Doug Barton wrote:
>Nicolas Blais wrote:
>
>>For cupds, after you did the update, did you rm /usr/local/etc/rc.d/cups.sh and cp /usr/local/etc/rc.d/cups.sh.sample /usr/local/etc/rc.d/cups.sh ?
>
>A more effective long term solution to that problem is to do:
>
>cd /usr/local/etc/rc.d
>rm cups.sh
>ln -s cups.sh.sample cups.sh
>
>Also, you can test the effectiveness of the solution by removing the line with the word PROVIDE on it from the cups.sh[.sample] script, which is all the update to the port does.
>
>Of course, it's possible that some OTHER script from another port is also causing a problem. If after you do the cups update you still have a problem, send me all the scripts you have in /usr/local/etc/rc.d and /usr/X11R6/etc/rc.d, I will be glad to take a look.
>
>hth,
>Doug

There are other scripts that cause this.
I just did a portupgrade of portupgrade and it installs a script called 000.pkgtools.sh
after rebooting no ssh sendmail or cron.
Here is the script:

#!/bin/sh
#
# $Id: pkgtools.sh 1047 2004-12-25 15:35:21Z knu $

# PROVIDE: pkgtools
# REQUIRE: ldconfig
# KEYWORD: FreeBSD

. /etc/rc.subr

name=pkgtools

start_cmd=pkgtools_start
stop_cmd=:

[ -z "$pkgtools_libdir" ] && pkgtools_libdir="/usr/local/lib/compat/pkg"

pkgtools_start() {
    if [ -d "$pkgtools_libdir" ]; then
        /sbin/ldconfig -m "$pkgtools_libdir"
    fi
}

load_rc_config $name
run_rc_command "$1"


==================================
||      null_at_pozo.com           ||
||      Ph. (415) 681-6235      ||
================================== 
Received on Sun Dec 04 2005 - 17:30:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:48 UTC