Sync usage with man page.
[netbsd-mini2440.git] / etc / rc.d / wdogctl
blob5c79223465fc0ef66c379564a0c672a2844070f6
1 #!/bin/sh
3 # $NetBSD: wdogctl,v 1.3 2009/04/15 21:33:57 joerg Exp $
6 # PROVIDE: wdogctl
7 # BEFORE: fsck_root
9 # The watchdog is configured VERY early, so that any problems that
10 # occur during the bootstrap process are protected by the watchdog.
12 $_rc_subr_loaded . /etc/rc.subr
14 name="wdogctl"
15 rcvar=$name
17 start_cmd="watchdog_start"
18 stop_cmd="watchdog_stop"
19 status_cmd="watchdog_status"
21 extra_commands="status"
23 watchdog_start()
25 if [ x"${wdogctl_flags}" = "x" ]; then
26 warn "\${wdogctl_flags} is not set, watchdog not started"
27 else
28 echo "Starting watchdog timer."
29 /sbin/wdogctl ${wdogctl_flags}
33 watchdog_stop()
35 echo "Stopping watchdog timer."
36 /sbin/wdogctl -d
39 watchdog_status()
41 /sbin/wdogctl
44 load_rc_config $name
45 run_rc_command "$1"