run sh rc cause two cron process running

Mike. the.lists at
Wed Jul 23 17:33:12 UTC 2014

On 7/23/2014 at 12:21 PM kpneal at wrote:

|On Wed, Jul 23, 2014 at 07:18:17PM +0800, Jov wrote:
|> when I change something in the /etc/rc.conf,I want to test the config
|> without reboot.I find cd /etc/ && sh rc can do it.but after the
|> system have 2 cron process,and some cron drived E-mail send twice a
|> But I find other daemon such ntpd do not have this problem.
|> Is this a bug?
|No, that's pilot error.
|If you want to test changes for a specific service then stop and then
|that service. For example:
|# /etc/rc.d/cron stop
|# /etc/rc.d/cron start
|Wait a second or two between the stopping and the starting just to be
|If you want to test the entire boot process then you have no real choice
|except to reboot. But I will say that in all my years I've never created
|a problem simply by editing rc.conf that required testing with a reboot.
|I have made changes that required testing with a full reboot, but there
|more to that than changing rc.conf.

After I make changes to rc.conf, I always run

	sh -n rc.conf

to check for syntax errors, e.g., a missing quote, which can have a less
than positive effect upon the boot process.

More information about the freebsd-questions mailing list