The ids.cgi needs to be locked, while the autoupdate script runs, to prevent from changing the ruleset while the ruleset gets changed by the script at the same time.
Function implemented. Part 1: https://git.ipfire.org/?p=people/stevee/ipfire-2.x.git;a=commit;h=8076deba79f9bbd4e551fdfe1eb49e8a77b2c19e Part 2: https://git.ipfire.org/?p=people/stevee/ipfire-2.x.git;a=commit;h=5206a3358d18b8ec9b1ceca3e95a56516ae7b4ab Part 3: https://git.ipfire.org/?p=people/stevee/ipfire-2.x.git;a=commit;h=9074e3d74cc931244892d306b38c298ce8dd0f2b