scripts icon indicating copy to clipboard operation
scripts copied to clipboard

cron and desktop-kill-shit.sh

Open Elimelech opened this issue 3 years ago • 3 comments

Hi! And why in the crown to run this script (desktop-kill-shit.sh) every second?

In https://vermaden.wordpress.com/2018/07/01/freebsd-desktop-part-12-configuration-openbox/:

  • *     * * * ~/scripts/desktop-kill-shit.sh                                       1> /dev/null 2> /dev/null
    

Elimelech avatar Jan 13 '22 10:01 Elimelech

The '* * * * *' in cron(8) means it runs every minute, not every second.

vermaden avatar Jan 13 '22 15:01 vermaden

But why so often? Isn't it easier to just disable these services?

Elimelech avatar Jan 13 '22 18:01 Elimelech

They are not enabled. Yet they are still sometimes running. There are many ways to deal with them. One is to kill them periodically. You can also remove these executables from disk every time pkg(8) upgrade has been done ... or mark them as non-executable.

vermaden avatar Jan 14 '22 11:01 vermaden