Skip to content

Commit

Permalink
Execute omr-schedule every minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Jan 16, 2024
1 parent abe757b commit 9cbeb18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions omr-schedule/files/bin/omr-schedule
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
. /lib/functions.sh
. /lib/functions/network.sh

[ -n "$(pgrep -f 'omr-schedule')" ] && exit 0

for schedule_bin in /usr/share/omr/schedule.d/*; do
[ -x "$schedule_bin" ] && (
_log() {
Expand Down
2 changes: 1 addition & 1 deletion omr-schedule/files/etc/uci-defaults/3000-omr-schedule
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
if [ ! -f /etc/crontabs/root ] || [ "$(cat /etc/crontabs/root | grep omr-schedule)" = "" ]; then
echo "*/5 * * * * /bin/omr-schedule" >> /etc/crontabs/root
echo "* * * * * /bin/omr-schedule" >> /etc/crontabs/root
fi

0 comments on commit 9cbeb18

Please sign in to comment.