Bug#378480: [pkg-ntp-maintainers] Bug#378480: should not run init script from postinst and prerm

Marcel Sebek sebek64 at post.cz
Sun Jul 16 19:43:02 UTC 2006


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-ntp-maintainers/attachments/20060716/9fb3f698/attachment.pgp


More information about the pkg-ntp-maintainers mailing list