I make extensive use of the
I do not use the "periodic" system (except whatever default stuff it may do, I guess), but I now have something I intend to use it for. Investigating it, I was surprised to be unable to find anything akin to
Obviously I can just accept the fact of the issue and use those files anyway, but before I do that, I want to make sure:
1. Did I just miss the existence of some standard, built-in thing like
2. Assuming I didn't miss anything like that: It seems to me that these things (e.g.
3. If that is correct, then it furthermore seems to me that I could just "roll my own" by setting up some secure directory with my "real" periodic scripts in it, and changing
Thanks in advance.
/etc/rc.conf.d
directory instead of the /etc/rc.conf
file; by creating individual files like /etc/rc.conf.d/apache24
and /etc/rc.conf.d/mysql
instead of adding lines about both Apache and MySQL to /etc/rc.conf
, I find that configuration management is greatly simplified.I do not use the "periodic" system (except whatever default stuff it may do, I guess), but I now have something I intend to use it for. Investigating it, I was surprised to be unable to find anything akin to
/etc/rc.conf.d
- i.e. a directory intended for the user to place their own periodic-related individual files in. I know about /etc/periodic.conf
and /etc/periodic.conf.local
, but it seems to me that since these are files and not directories, directly using either of them would introduce the kind of configuration management complications I'm trying to avoid.Obviously I can just accept the fact of the issue and use those files anyway, but before I do that, I want to make sure:
1. Did I just miss the existence of some standard, built-in thing like
/etc/periodic.conf.d
?2. Assuming I didn't miss anything like that: It seems to me that these things (e.g.
/etc/periodic.conf)
are intended to just be shell scripts. Is that correct?3. If that is correct, then it furthermore seems to me that I could just "roll my own" by setting up some secure directory with my "real" periodic scripts in it, and changing
/etc/periodic.conf
to be a simple little script that just sources in whatever it happens to find in that directory. That way I could have (e.g.) one file for periodic Apache-related stuff and another for periodic MySQL-related stuff, which is what I'm hoping for. But these sorts of systems (e.g. periodic, rc) are often, in my experience, more complicated than they may seem at first glance, so I want to make sure: Is there anything problematic about this approach?Thanks in advance.