Consider this script in the /usr/local/etc/rc.d/foo:
```
#!/bin/sh
# PROVIDE: foo
# REQUIRE: tmp
. /etc/rc.subr
name="foo"
rcvar="${name}_enable"
desc="Configure foo"
start_cmd="enable_foo"
status_cmd="foo_status"
stop_cmd=':'
enable_foo()
{
touch /tmp/foo
}
foo_status()
{
if [ -f /tmp/foo ]
then
return 0
fi
return 1
}
load_rc_config $name
run_rc_command "$1"
```
Without this patch attempt to do "service foo onestatus" gives me:
```
$ service foo onestatus
/usr/local/etc/rc.d/foo: unknown directive 'status'.
Usage: /usr/local/etc/rc.d/foo [fast|force|one|quiet](start|stop|restart|rcvar|enabled|describe|extracommands)
```
After applying this patch:
```
$ service foo onestatus || echo 'foo is down!'
foo is down!
```