Blame view

daily.sh 315 Bytes
redmine authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh

cd /home/redmine-sched/redmine-scheduler > /dev/null
for file in daily-*.php; do
	(
		lockfile-check  /run/redmine-schred-d-"$file".lock && exit 0
		lockfile-create /run/redmine-schred-d-"$file".lock
		php ./"$file"
		lockfile-remove /run/redmine-schred-d-"$file".lock
	) &
done
cd - > /dev/null

exit 0