Do Ubuntu Linux cron (Vixie cron?) support setting timeout for its jobs?
Specifically, the process would be killed after X seconds unless it finishes successfully by then.
I have had some cases where tasks have been hanging due to network connectivity and various issues. The process are left to hanging forever unless you manually clean up and kill them.
On Ubuntu the command timeout exists, which is part of coreutils. You can use it like this to set a timeout. Older versions of Debian/Ubuntu didn't build and include this command, but there is a comparable
timeout
package that you can install.I don't think this is possible. You'll have to build the check into your application.