Crontab entry deleted after upgrading IPFire from Core 188 to 198

Hello everyone,
After I upgraded my IPFire from Core 188 to Core 198, my crontab entry was deleted. Why did this happen?

My command:

fcrontab -e

The line I had previously added was removed:

* * * * * /etc/mycode.sh

Because there is no general right to expect that parts of the code will not be modified and/or deleted?!? :wink:

1 Like

In CU198 the fcron package was updated and therefore the IPFire defined root fcrontab that defines all the system cron entries was also overwritten..

There is a section in the IPFire documentation that explains how you can create your own user and a fcrontab for that user so that you can run your own entries without them being overwritten when the fcron package is updated.

https://www.ipfire.org/docs/pkgs/fcron

2 Likes

I added my script to the fcrontab of fcronuser.
Also, I think this behavior is unusual. I have never seen a distribution like Ubuntu overwrite the root crontab after an upgrade. Thank you for your attention @bonnietwin and @luxskywalker .

This is because Ubuntu is a general purpose distribution. In IPFire we manage a system-wide crontab will all jobs that the system needs. If you change it, your changes might be lost.

It is the same with various configuration files of various services. They are managed over the web UI as well.

5 Likes