csf does not exucute csfpost.sh at boot

Post Reply
Bedlore
Junior Member
Posts: 1
Joined: 16 Jun 2022, 04:44

csf does not exucute csfpost.sh at boot

Post by Bedlore »

Running Ubuntu 20.04.4 and found that even though I have a valid csfpost.sh it is not run on server reboots.
root@mybox:/etc/csf# ls -l csfpost.sh
-rwx------ 1 root root 529 Jun 16 13:22 csfpost.sh

If I manually csf -r then it does get executed. I can't find anything in documentation to indicate I have something wrong.

As a workaround I created a line into the cron /etc/cron.d/csf-cron
@reboot root /usr/sbin/csf -r

Is this a bug or am I misunderstanding something?
Post Reply