On Mon, Dec 27, 2010, Frank Cox wrote:
On Mon, 27 Dec 2010 16:31:29 -0500 Nico Kadel-Garcia wrote:
*/sbin/service* is working fine. It's just a shell script that finds and passes arguments to the init scripts in /etc/rc.d/init.d/. (/etc/init.d is a symlink to /etc/rc.d/init.d: don't be confused by that.)
If the init script supports reload, then service will successfully pass the argument to it. If it doesn't support reload, such as the "privoxy" script in this case does not, then you'll need to use start, stop, or restart.
Ah... gotcha! I've learned something today....
There are many options to logrotate that control this, and things like creating a new log file before reloading or restarting the service (e.g. at least some syslogd programs will not work unless their output log file(s) exist when they start.
The GNU shtool also provides log rotate functions which can be used in cron jobs and such.
Bill