public inbox for gentoo-user-de@lists.gentoo.org
 help / color / mirror / Atom feed
From: Johann Schmitz <ercpe@gentoo.org>
To: gentoo-user-de@lists.gentoo.org
Subject: Re: [gentoo-user-de] ntp-client startet zu früh
Date: Fri, 30 Aug 2013 06:42:57 +0200	[thread overview]
Message-ID: <522022D1.1040601@gentoo.org> (raw)
In-Reply-To: <521FAE9F.8030108@hfigge.myfqdn.de>

Hallo Hartmut,

die Dependencies sind im Init-Script definiert. Für den ntp-client heißt
dies z.B.:

depend() {
    before cron portmap
    after net
    use dns logger
}

Die Dependency "net" (und vermutlich damit auch "dns") wird allerdings
durch dein eth0 erfüllt, weshalb der ntp-client vor deinem ppp0
gestartet werden kann. Eine weiter Dependency direct im Init-Script
hinzuzufügen ist nicht zu empfehlen, da sie bei einem Update direkt
wieder überschrieben wird.

Du kannst aber in der /etc/rc.conf weitere Abhängigkeiten definieren:

# Below is an example for service foo-bar. Note that the '-' is illegal
# in a shell variable name, so we convert it to an underscore.
# example for service foo-bar.
#rc_foo_bar_config="/etc/foo-bar"
#rc_foo_bar_need="openvpn"
#rc_foo_bar_after="clock"

Für ntp-client müsste das also

rc_ntp_client_need="net.ppp0"
bzw.
rc_ntp_client_after="net.ppp0"

heißen. Der Unterschied zwischen need und after steht in der Manpage.


Gruß,
Johann


  reply	other threads:[~2013-08-30  4:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-29 20:27 [gentoo-user-de] ntp-client startet zu früh Hartmut Figge
2013-08-30  4:42 ` Johann Schmitz [this message]
2013-08-30  7:47   ` Hartmut Figge
2013-08-30  9:12   ` Marc Joliet

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=522022D1.1040601@gentoo.org \
    --to=ercpe@gentoo.org \
    --cc=gentoo-user-de@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox