当前版引入rc.d不知怎样添加运行(已解决见#6)
发表于 : 2010-12-18 13:25
Added a simple 'rc' system to base (/etc/rc.subr) in order to start/stop/restart/reload services installed by the ports system.
cat /etc/rc.local
cat /etc/rc.local
cat /etc/rc.d/dbus_daemon# $OpenBSD: rc.local,v 1.41 2010/11/05 10:03:00 ajacoutot Exp $
# Site-specific startup actions, daemons, and other things which
# can be done AFTER your system goes into securemode. For actions
# which should be done BEFORE your system has gone into securemode
# please see /etc/rc.securelevel.
echo -n 'starting local daemons:'
for _r in $rc_scripts; do
[ -x /etc/rc.d/${_r} ] && echo -n " ${_r}" && /etc/rc.d/${_r} start
done
# Add your local startup actions here.
echo '.'
#!/bin/sh
#
# $OpenBSD: dbus_daemon.rc,v 1.5 2010/12/16 07:13:59 ajacoutot Exp $
. /etc/rc.d/rc.subr
daemon="${TRUEPREFIX}/bin/dbus-daemon"
daemon_flags="--system"
rc_pre() {
rm -f /var/run/dbus/pid
install -d -o _dbus -g _dbus /var/run/dbus
}
rc_cmd $1