mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
added support for system crontab
This commit is contained in:
parent
01aa1a028c
commit
a9985b66f7
1
board/common/overlay/etc/crontabs/root
Normal file
1
board/common/overlay/etc/crontabs/root
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
@ -1,13 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
sys_conf="/etc/crontabs"
|
||||||
|
conf="/data/etc/crontabs"
|
||||||
|
|
||||||
test -n "$os_version" || source /etc/init.d/base
|
test -n "$os_version" || source /etc/init.d/base
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
msg_begin "Starting crond"
|
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
|
test $? == 0 && msg_done || msg_fail
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user