I have a bunch of maintenance scripts that are typically only run by cron or root. I had been putting them in /usr/local/sbin
but honestly, I don't want them in the path. Normal users can't (and don't want to) run them and even root doesn't need them in the path. There are several other options, but I'm not sure which is best.
Considerations:
/root/maintenance
- Reservation is that not all maintenance scripts run as root./opt/maintenance
- Guess it is an optional package./usr/local/maintenance
- If placing sub-directories in/usr/local
isn't unorthodox./etc/maintenance
- Doesn't seem like a configuration, but there are other scripts are in/etc
.
While I understand I can put the maintenance scripts wherever I like, I'd prefer to place them in standard location. If there isn't one, a sensible location will do.