Quote:
Originally Posted by Xtender
Code:
/usr/bin/touch /var/log/`date "+%H-%M-%S"`-test.log
|
Try using the full path of 'date':
/bin/date
You should also add
rcorder(8) keywords. It should at least be:
Code:
#!/bin/sh
# PROVIDE: test
# REQUIRE: DAEMON
. /etc/rc.subr
name="test"
rcvar=`set_rcvar`
load_rc_config ${name}
: ${test_enable="NO"}
start_cmd="${name}_start"
stop_cmd=":"
test_start()
{
/usr/bin/touch /var/log/`/bin/date "+%H-%M-%S"`-test.log
}
run_rc_command "$1"