Update named.root to the version from 1 November 2007 from ftp.internic.net.
[dragonfly.git] / etc / rc.d / battd
blob2ded81158806ddafc49b32cdf2f34f873e5bd6ef
1 #!/bin/sh
3 # $DragonFly: src/etc/rc.d/battd,v 1.2 2005/11/19 21:47:32 swildner Exp $
6 # PROVIDE: battd
7 # REQUIRE: DAEMON apm
8 # BEFORE: LOGIN
10 . /etc/rc.subr
12 name="battd"
13 rcvar=`set_rcvar`
14 start_precmd="battd_precmd"
15 command="/usr/sbin/${name}"
16 pidfile="/var/run/${name}.pid"
18 battd_precmd()
20 case `${SYSCTL_N} hw.machine_arch` in
21 i386)
22 # Enable apm if it is not already enabled
23 if ! checkyesno apm_enable && \
24 ! /etc/rc.d/apm forcestatus 1>/dev/null 2>&1
25 then
26 force_depend apm || return 1
30 return 1
32 esac
33 return 0
36 load_rc_config $name
37 run_rc_command "$1"