vermaden/scripts

cron and desktop-kill-shit.sh

Elimelech opened this issue · 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
    

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

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

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.