All of lore.kernel.org
 help / color / mirror / Atom feed
From: Diego <diego.ml@zoho.com>
To: Philip Balister <philip@balister.org>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: ntpd fails to start if libcap not installed
Date: Fri, 28 Mar 2014 19:04:50 +0100	[thread overview]
Message-ID: <1487041.bBRm1EH4qA@localhost.localdomain> (raw)
In-Reply-To: <5335B790.1010107@balister.org>

In data venerdì 28 marzo 2014 10:55:28, Philip Balister ha scritto:
> On 03/28/2014 06:40 AM, Diego wrote:
> > Hi openembedders!
> > 
> > I've noticed that if ntp is built without libcap, ntpd fails to start from
> > the initscript:
> > /etc/init.d/ntpd
> > 
> > giving the error:
> > Starting ntpd: /usr/sbin/ntpd: The ``user'' option has been disabled --
> > built without --enable-clockctl or --enable-linuxcaps
> > ntpd - NTP daemon program - Ver. 4.2.6p5
> > USAGE:  ntpd [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
> > 
> > That is caused by the line:
> > start-stop-daemon --start -x /usr/sbin/ntpd -- -u ntp:ntp -p
> > /var/run/ntp.pid "$@"
> > 
> > and in particular by the option "-u ntp:ntp" which is not supported which
> > is not supported if ntp is build without --enable-clockctl.
> > 
> > Is anybody else experiencing this problem?
> 
> Oddly enough, I was about to report the symptom today also :)
> 
> Any ntp experts know what the proper solution is? I'd be glad to propose
> a patch.
> 

Hi Philip,

I'd like to rephrase better my statement, as I put two errors in it:
The problem is caused by the option "-u ntp:ntp" which is not supported if ntp 
is build without "--enable-linuxcaps".

As far as the manual goes, the "--enable-clockctl" is a build option for 
NetBSD:
http://www.eecis.udel.edu/~mills/ntp/html/ntpd.html

Removing the "-u ntp:ntp" makes the initscript work, but I don't know if 
shipping different ntpd initscripts based on pkgconfig is the correct thing to 
do. Any expert opinion?

Bests,
Diego




  reply	other threads:[~2014-03-28 18:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-28 13:40 ntpd fails to start if libcap not installed Diego
2014-03-28 17:43 ` USB wifi configuration MONDON Daniel
2014-03-31  7:58   ` MONDON Daniel
2014-04-01 13:51     ` MONDON Daniel
2014-04-01 15:47       ` Stephen Arnold
2014-03-28 17:55 ` ntpd fails to start if libcap not installed Philip Balister
2014-03-28 18:04   ` Diego [this message]
2014-03-30  0:07     ` Khem Raj
2014-04-01 16:05       ` Stephen Arnold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1487041.bBRm1EH4qA@localhost.localdomain \
    --to=diego.ml@zoho.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=philip@balister.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.