Latest improvements from Mike Makonnen. Better kerberos and apm handling.
This commit is contained in:
parent
c4e0f575d3
commit
77aa299a77
@ -4,7 +4,7 @@
|
|||||||
.include <bsd.own.mk>
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
FILES= DAEMON LOGIN NETWORKING SERVERS abi accounting addswap adjkerntz altqd \
|
FILES= DAEMON LOGIN NETWORKING SERVERS abi accounting addswap adjkerntz altqd \
|
||||||
amd apmd atm1 atm2.sh atm3.sh bgfsck bootconf.sh bootparams ccd \
|
amd apm apmd atm1 atm2.sh atm3.sh bgfsck bootconf.sh bootparams ccd \
|
||||||
cleanvar cleartmp cron devdb devfs dhclient dhcpd dhcrelay diskless \
|
cleanvar cleartmp cron devdb devfs dhclient dhcpd dhcrelay diskless \
|
||||||
dmesg dumpon fsck gated inetd initdiskless initrandom ipfilter ipfw \
|
dmesg dumpon fsck gated inetd initdiskless initrandom ipfilter ipfw \
|
||||||
ip6fw ipmon ipnat ipsec ipxrouted isdnd kadmind kdc kerberos keyserv \
|
ip6fw ipmon ipnat ipsec ipxrouted isdnd kadmind kdc kerberos keyserv \
|
||||||
|
30
etc/rc.d/apm
Normal file
30
etc/rc.d/apm
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
|
||||||
|
# PROVIDE: apm
|
||||||
|
# REQUIRE: DAEMON
|
||||||
|
# BEFORE: LOGIN
|
||||||
|
# KEYWORD: FreeBSD
|
||||||
|
|
||||||
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
name="apm"
|
||||||
|
rcvar=`set_rcvar`
|
||||||
|
start_precmd="apm_precmd"
|
||||||
|
command="/usr/sbin/${name}"
|
||||||
|
command_args="-e enable"
|
||||||
|
|
||||||
|
apm_precmd()
|
||||||
|
{
|
||||||
|
case `${SYSCTL_N} hw.machine_arch` in
|
||||||
|
i386)
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
run_rc_command "$1"
|
@ -5,14 +5,35 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
# PROVIDE: apmd
|
# PROVIDE: apmd
|
||||||
# REQUIRE: DAEMON
|
# REQUIRE: DAEMON apm
|
||||||
# BEFORE: LOGIN
|
# BEFORE: LOGIN
|
||||||
|
# KEYWORD: FreeBSD NetBSD
|
||||||
|
|
||||||
. /etc/rc.subr
|
. /etc/rc.subr
|
||||||
|
|
||||||
name="apmd"
|
name="apmd"
|
||||||
rcvar=$name
|
rcvar=`set_rcvar`
|
||||||
command="/usr/sbin/${name}"
|
command="/usr/sbin/${name}"
|
||||||
|
|
||||||
|
case `${CMD_OSTYPE}` in
|
||||||
|
FreeBSD)
|
||||||
|
start_precmd="apmd_prestart"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
apmd_prestart()
|
||||||
|
{
|
||||||
|
case `${SYSCTL_N} hw.machine_arch` in
|
||||||
|
i386)
|
||||||
|
# Don't start if apm is already running
|
||||||
|
/etc/rc.d/apm forcestatus > /dev/null && return 1
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
return 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
load_rc_config $name
|
load_rc_config $name
|
||||||
run_rc_command "$1"
|
run_rc_command "$1"
|
||||||
|
@ -10,18 +10,18 @@
|
|||||||
. /etc/rc.subr
|
. /etc/rc.subr
|
||||||
|
|
||||||
name="kerberosIV"
|
name="kerberosIV"
|
||||||
|
load_rc_config $name
|
||||||
rcvar="kerberos4_server_enable"
|
rcvar="kerberos4_server_enable"
|
||||||
command="${kerberos4_server}"
|
command="${kerberos4_server}"
|
||||||
checkyesno kerberos_stash && stash='-n' || stash=
|
checkyesno kerberos_stash && stash='-n' || stash=
|
||||||
command_args="${stash} >> /var/log/kerberos.log &"
|
command_args="${stash} >> /var/log/kerberos.log &"
|
||||||
|
|
||||||
load_rc_config $name
|
|
||||||
run_rc_command "$1"
|
run_rc_command "$1"
|
||||||
|
|
||||||
name="kerberos5"
|
name="kerberos5"
|
||||||
|
load_rc_config $name
|
||||||
rcvar="kerberos5_server_enable"
|
rcvar="kerberos5_server_enable"
|
||||||
command="${kerberos5_server}"
|
command="${kerberos5_server}"
|
||||||
command_args="&"
|
command_args="&"
|
||||||
|
|
||||||
load_rc_config $name
|
|
||||||
run_rc_command "$1"
|
run_rc_command "$1"
|
||||||
|
Loading…
Reference in New Issue
Block a user