Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
proc dauerhafte einstellung
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
toroneos
n00b
n00b


Joined: 20 Oct 2005
Posts: 65

PostPosted: Thu May 31, 2007 9:36 am    Post subject: proc dauerhafte einstellung Reply with quote

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
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1844
Location: Oranienburg/Germany

PostPosted: Thu May 31, 2007 9:38 am    Post subject: Reply with quote

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
View user's profile Send private message
toroneos
n00b
n00b


Joined: 20 Oct 2005
Posts: 65

PostPosted: Thu May 31, 2007 10:36 am    Post subject: Reply with quote

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
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Thu May 31, 2007 10:56 am    Post subject: Reply with quote

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
View user's profile Send private message
toroneos
n00b
n00b


Joined: 20 Oct 2005
Posts: 65

PostPosted: Thu May 31, 2007 11:25 am    Post subject: Reply with quote

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
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Thu May 31, 2007 11:33 am    Post subject: Reply with quote

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
View user's profile Send private message
toroneos
n00b
n00b


Joined: 20 Oct 2005
Posts: 65

PostPosted: Thu May 31, 2007 11:39 am    Post subject: Reply with quote

Nochmals Danke! Früher waren die init-scripte noch in reinem bash... aber so ist es recht simpel.
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5205

PostPosted: Thu May 31, 2007 11:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Fauli
l33t
l33t


Joined: 24 Apr 2004
Posts: 760
Location: Moers, Germany

PostPosted: Fri Jun 01, 2007 7:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum