From ceaf9e8217f29f6c499d03c62612b2eb50e8ed09 Mon Sep 17 00:00:00 2001 From: John Voltz Date: Thu, 6 Mar 2008 18:59:14 +0000 Subject: updates and additions for avr32 arch --- target/device/valka/target_skeleton/etc/rc.d/crond | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 target/device/valka/target_skeleton/etc/rc.d/crond (limited to 'target/device/valka/target_skeleton/etc/rc.d/crond') diff --git a/target/device/valka/target_skeleton/etc/rc.d/crond b/target/device/valka/target_skeleton/etc/rc.d/crond new file mode 100755 index 000000000..ef1b7fee0 --- /dev/null +++ b/target/device/valka/target_skeleton/etc/rc.d/crond @@ -0,0 +1,27 @@ +#!/bin/ash +. /etc/rc.subr + +start() { + echo -n " * Starting crond: " + if [ ! -x ${crond_program} ]; then + log_error "Missing 'crond' program (${crond_program})" + echo "Failed" + return 1 + fi + + ${crond_program} -f -c ${crond_dir} ${crond_flags} & + pid=$! + if [ "$?" -eq 0 ]; then + echo "${pid}" > ${crond_pidfile} + echo "Ok" + else + echo "Failed" + fi +} + +stop() { + echo " * Stopping crond..." + killpid ${crond_pidfile} +} + +rc_run_command "$1" "crond" -- cgit v1.2.3