Use ASTRUNDIR, not /tmp, for the lockfile
Use ASTRUNDIR, not /tmp, for the lockfile

Use "scheduler.lock" as the lockfile name.
Need to read in the configuration files first,
so we know which directory will hold the lock.

FreePBX/dashboard,FreePBX/dashboard,FreePBX/dashboard