I followed the instructions in the wiki to refine some services that I currently keep set up in Fcrontab and that are deleted in IPFire updates.
I did many trials following wiki.
I was able to create and enter the processes in fcronuser, but they do not run. Where could I have gone wrong? Any suggestions?
I send a draft of the steps I did following the wiki.
I thank you in advance.
I just tried to install a fcronuser fcron file.
It functions!
*/5 * * * * /bin/date >>/root/tfc
writes all 5 min the date into the file.
BTW: Why do you use the fcrontab way for your problem? @bonnietwin suggested to put the iptable commands into firewall.local
That is the right place. Each start of the firewall defines the rules, each stop deletes them.
I thank you for the answer. I am using fcrontab with a line similar to the one you mentioned. For now iptable I have suspended it. I need to study well how firewall.local works .
I have a doubt: I did the tests with the test version of IPFire. Will this be a problem with the test version? If my procedures are correct it seems strange to me that it does not work for me.
The commands that are inside nomefile.sh have nothing to do with iptable. If you want I can publish them.
With the stable version everything works, but I haven’t tried there “fcronuser”.
You don’t need to restart fcron. If you have changed an fcrontab via the fcrontab -e command then after exiting from the editor the changes are applied to the fcrontab immediately.
But I have another suspicion: maybe I made a mistake in writing the processes in filename.sh in the IPFire test.
If you can assure me that the procedures listed in the first post are correct, I will try it directly on my good IPFire server and update you.
I would try first on the system you have set up the fcronuser the following command.
sudo -u fcronuser /usr/nomefile.sh
This will run the command you have put into your fcrontab as the user fcronuser and if it fails it should give some messages about what the problem is.