That sound better than a cronjob, yeah. But as you already mentioned not all Linux distros use systemd so maybe we should consider to keep the cronjob thing as fallback if the script notices that systemd is not installed.
So it should be something for the case that the user has systemd and otherwise it should tell the user to use a cronjob.
Another idea would be to keep this script running and to include a sleep. Then one could create a systemd service unit and it would be easy to support other service managers.
> That sound better than a cronjob, yeah. But as you already mentioned not all Linux distros use systemd so maybe we should consider to keep the cronjob thing as fallback if the script notices that systemd is not installed.
So it should be something for the case that the user has systemd and otherwise it should tell the user to use a cronjob.
Another idea would be to keep this script running and to include a sleep. Then one could create a systemd service unit and it would be easy to support other service managers.