From: David van Moolenbroek Date: Thu, 23 Feb 2017 11:34:42 +0000 (+0000) Subject: No longer auto-start pkgsrc packages X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=e4449940d2b35f81593c9bd2ab2b338d12ee8c9c;p=minix.git 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 --- diff --git a/etc/rc.minix b/etc/rc.minix index 1c213e09f..506971a0f 100755 --- a/etc/rc.minix +++ b/etc/rc.minix @@ -214,15 +214,6 @@ stop) # RS: devman not running? sleep 1 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 ] then diff --git a/etc/usr/rc b/etc/usr/rc index 614a8f50b..69dfb1607 100644 --- a/etc/usr/rc +++ b/etc/usr/rc @@ -417,26 +417,3 @@ stop) fi fi 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