View previous topic :: View next topic |
Author |
Message |
toroneos n00b
Joined: 20 Oct 2005 Posts: 65
|
Posted: Thu May 31, 2007 9:36 am Post subject: proc dauerhafte einstellung |
|
|
Hallo,
ich möchte gerne dauerhaft einen Wert in /proc einstellen. Sprich das auch nach einem Neustart der Werst gesetzt ist, wie ist das generell möglich?
Gruss |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Thu May 31, 2007 9:38 am Post subject: |
|
|
Hi,
je nachdem was du setzen möchtest kannst du das entweder über die Datei /etc/sysctl.conf oder direkt via "echo" etc über /etc/conf.d/local.start machen.
MfG. Stefan _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
toroneos n00b
Joined: 20 Oct 2005 Posts: 65
|
Posted: Thu May 31, 2007 10:36 am Post subject: |
|
|
Vielen Dank,
es handelt sich dabei um eine Einstellung für den NTP auf einer XEN Virtual Machine:
echo 1 > /proc/sys/xen/independent_wallclock
Wenn ich das in local.start einfügen würde, wäre es in dem Sinne zu spät, weil der ntpd früher gestartet wird. Oder ist das ein Fall für die /etc/sysctl.conf? |
|
Back to top |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Thu May 31, 2007 10:56 am Post subject: |
|
|
xen.independent_wallclock = 1 in /etc/sysctl.conf
alternativ ntpd erst nach local starten lassen (ändern der Abhängigkeiten oder in local ein restart nach dem echo) aber das wäre etwas Knie-Brust-Auge _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
|
toroneos n00b
Joined: 20 Oct 2005 Posts: 65
|
Posted: Thu May 31, 2007 11:25 am Post subject: |
|
|
Vielen, vielen Dank. Ich die sysctl.conf-Lösung gewählt.
Nur eine Frage informationshalber, wie könnte ich die direkte Reihenfolge beeinflussen? |
|
Back to top |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Thu May 31, 2007 11:33 am Post subject: |
|
|
indem du /etc/init.d/ntpd änderst und im depend-Abschnitt after local einträgst _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
|
toroneos n00b
Joined: 20 Oct 2005 Posts: 65
|
Posted: Thu May 31, 2007 11:39 am Post subject: |
|
|
Nochmals Danke! Früher waren die init-scripte noch in reinem bash... aber so ist es recht simpel. |
|
Back to top |
|
|
firefly Watchman
Joined: 31 Oct 2002 Posts: 5205
|
Posted: Thu May 31, 2007 11:47 am Post subject: |
|
|
toroneos wrote: | Nochmals Danke! Früher waren die init-scripte noch in reinem bash... aber so ist es recht simpel. |
öhm die inistscripte sind immer noch reine shell-scripte. _________________ Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn. |
|
Back to top |
|
|
Fauli l33t
Joined: 24 Apr 2004 Posts: 760 Location: Moers, Germany
|
Posted: Fri Jun 01, 2007 7:46 pm Post subject: |
|
|
after() ist beispielsweise in /var/lib/init.d/depcache definiert, welches wiederum von /lib/rcscripts/awk/cachedepends.awk erstellt wird. _________________ Do your part to beautify the web! Turn off link underlining! |
|
Back to top |
|
|
|