by sharmi on 7/26/22, 2:27 AM with 12 comments
We are two founders starting up a business. We need to run multiple programs everyday (around 25) that will be run periodically. They are not always alive though and will often be done in 10 minutes to an hour.
Unfortunately as a two person company, keeping track of all the programs' statuses is hard.Is there a way to keep track (and if possible, also spawn them on schedule) of the processes and give regular updates? Like a dashboard of sorts, that can show which programs have been running successfully and which have failed to finish or didn't start?
by DamonHD on 7/26/22, 2:42 AM
It's unfashionable these days I think, but still works for me.
by 2143 on 7/26/22, 4:36 AM
Here's one idea:
1. Wrap your processes in systemd services or something similar, where it's possible to determine the status by pinging it.
2. Write a script to periodically (via cron maybe) ping all relevant services, and store the statuses somewhere (file, DB..)
3. Another script (or the previous one) to read the data from 2 and spit it to a locally served webpage.
> if possible, also spawn them on schedule
Cronjobs.
by verdverm on 7/26/22, 2:48 AM