On Sun, Jul 16, 2006 at 07:59:27PM +0200, Peter Eisentraut wrote:
> Marcel Sebek wrote:
> > Because ntpdate sets clock by jump (settimeofday), not by slow
> > synchronization (adjtime).
> 
> What does that have to do with whether start or restart is called?

When called with start, -b option is passed, which forces settimeofday
instead of adjtime. Calling with restart doesn't pass this parameter.

> 
> > And why I suggest removing the call at all? Suppose this: Somebody
> > have ntp server installed and ntpdate has only to be run on startup.
> > If he upgrades ntpdate, ntp server might get confused when some other
> > program touches system time.
> 
> If ntpd is running, ntpdate doesn't do anything.

I didn't know that.

I still think the right behavior is not calling init script from
package scripts. Such init script calling is there for daemons, not
for rcS scripts, that does nothing when called with stop. See
dh_installinit manpage, --no-start.

-- 
Marcel Sebek

Attachment: signature.asc
Description: Digital signature

Reply via email to