No longer auto-start pkgsrc packages

In order to comply with the pkgsrc standards, pkgsrc packages are no
longer auto-started.  Instead, we require that users follow the common
pkgsrc procedure: to start a pkgsrc package as part of system startup,
copy its startup script from /usr/pkg/etc/rc.d to /etc/rc.d, and make
the appropriate changes to /etc/rc.conf.

This change affects in particular the openssh package, of which its
ssh daemon is no longer auto-started.  However, installing this
package also no longer causes all kinds of Kerberos-related warnings
to be reported at boot time now.

Also remove a leftover reference to the defunct ddekit usb package.

Change-Id: I4d42f6ca1ab5e3bc2ec296bc7c0e3056964ae451
This commit is contained in:
David van Moolenbroek 2017-02-23 11:34:42 +00:00
parent 325ce30bcc
commit e4449940d2
2 changed files with 0 additions and 32 deletions

View File

@ -214,15 +214,6 @@ stop)
# RS: devman not running? # RS: devman not running?
sleep 1 sleep 1
fi fi
#
# usbd needs to be stopped exactly
# at this stage(before stopping devman
# and after stopping the services
# stated by devmand)
if [ -x /usr/pkg/etc/rc.d/usbd ]
then
/usr/pkg/etc/rc.d/usbd stop
fi
if [ -x /service/usbd ] if [ -x /service/usbd ]
then then

View File

@ -417,26 +417,3 @@ stop)
fi fi
fi fi
esac esac
# Let packages run their own scripts
# FIXME: this should be removed altogether: pkgsrc is not supposed to be used
# this way. Instead, the user should copy over scripts from /usr/pkg/etc/rc.d
# to /etc/rc.d as desired, and configure them in /etc/rc.conf as appropriate.
for d in /usr/local/etc/rc.d /usr/pkg/etc/rc.d
do
if [ -d "$d" -a -z "$bootcd" ]
then ( if cd $d
then
echo -n "Local packages ($action): "
for f in *
do
if [ -x "$f" ]
then echo -n "$f "
sh "$f" "$action"
fi
done
echo " done."
fi
)
fi
done