added support for system crontab

This commit is contained in:
Calin Crisan 2016-06-05 21:01:43 +03:00
parent 01aa1a028c
commit a9985b66f7
2 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1 @@

View File

@ -1,13 +1,20 @@
#!/bin/bash
sys_conf="/etc/crontabs"
conf="/data/etc/crontabs"
test -n "$os_version" || source /etc/init.d/base
start() {
msg_begin "Starting crond"
mkdir -p /data/etc/crontabs/
if [ -d $sys_conf ]; then
/usr/sbin/crond -c $sys_conf
fi
mkdir -p $conf
/usr/sbin/crond -c $conf
/usr/sbin/crond
test $? == 0 && msg_done || msg_fail
}