vermaden / scripts

Various scripts I wrote when using FreeBSD/Linux/UNIX systems for 15+ years.
https://vermaden.wordpress.com
146 stars 26 forks source link

cron and desktop-kill-shit.sh #6

Open Elimelech opened 2 years ago

Elimelech commented 2 years ago

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/:

vermaden commented 2 years ago

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

Elimelech commented 2 years ago

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

vermaden commented 2 years ago

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.