Path to this page:
./
pkgtools/rc.d-boot,
Run package rc.d scripts at boot on any supported OS
Branch: CURRENT,
Version: 20240415,
Package name: rc.d-boot-20240415,
Maintainer: schmonzThis package runs all rc.conf-enabled rc.d scripts at boot time as one
"service" in your operating system's normal boot process.
DEINSTALL [+/-]# $NetBSD: DEINSTALL,v 1.5 2022/12/17 21:36:11 triaxx Exp $
RCDBOOT_STYLE=@RCDBOOT_STYLE@
RCD_SCRIPTS_DIR=@RCD_SCRIPTS_DIR@
UNPRIVILEGED=@UNPRIVILEGED@
EGDIR=@EGDIR@
case "${STAGE}" in
DEINSTALL)
case "${RCDBOOT_STYLE}" in
darwin-launchd)
if [ "x${UNPRIVILEGED}" = "xyes" ] ; then
${RM} -f $HOME/Library/LaunchAgents/org.pkgsrc.rc.d-boot.plist
fi
;;
freebsd-native)
;;
linux-systemd)
systemctl disable pkgsrc-rc.d-boot.service
;;
linux-sysv-debian)
update-rc.d pkgsrc-rc.d-boot remove
;;
linux-sysv-redhat)
chkconfig pkgsrc-rc.d-boot off
chkconfig --del pkgsrc-rc.d-boot
;;
netbsd-native)
;;
openbsd-rcd)
short_order=$(rc.d-boot list | ${SED} -e "s|^${RCD_SCRIPTS_DIR}/||" | ${GREP} -v '^[A-Z]*$')
for _svc in ${short_order}; do
# lifted from OpenBSD 6.4 /usr/sbin/rcctl
${SED} "/^pkg_scripts[[:>:]]/{s/[[:<:]]${_svc}[[:>:]]//g
s/['\"]//g;s/ *= */=/;s/ */ /g;s/ $//;/=$/d;}" \
< /etc/rc.conf.local \
> /etc/rc.conf.local.tmp \
&& ${MV} /etc/rc.conf.local.tmp /etc/rc.conf.local
done
;;
esac
case "${RCDBOOT_STYLE}" in
*-native)
;;
*)
${CAT} <<EOF
===========================================================================
pkgsrc-provided rc.d scripts will no longer be started at boot.
If you wish to stop them, please do so now.
===========================================================================
EOF
;;
esac
;;
esac
Required to build:[
pkgtools/cwrappers]
Version history: (Expand)
- (2024-04-15) Updated to version: rc.d-boot-20240415
- (2023-05-10) Updated to version: rc.d-boot-20230510
- (2022-12-29) Updated to version: rc.d-boot-20221225
- (2022-12-18) Updated to version: rc.d-boot-20221202
- (2020-01-16) Updated to version: rc.d-boot-20200116
- (2018-12-29) Updated to version: rc.d-boot-20181228
CVS history: (Expand)