ווטסאפ - לינוקס, BSD, קוד פתוח ותוכנה חופשית בעברית. Whatsup - Linux, BSD, open source and free software in Hebrew

 
 
  כניסת חברים · רישום · שכחתי סיסמה  
tux the penguin
תגובה לנושא
צפיה בנושא הבא Printable version התחבר כדי לבדוק הודעות פרטיות צפיה בנושא הקודם
RoadRunnerאורח · ·
 

הודעה פורסם: 09/01/2005 - 22:59
נושא ההודעה: פירוש המושג runlevel

נתקלתי במושג בכמה מקומות.
למשל באיזה פיירוול שכתב לי שהוא לא מוצא את runlevel3 או משהו דומה.
וגם שזה משהו שקשור לתהליך העליה של לינוקס עם init.d.
אז מה זה בדיוק?
 
   
תגובה  עם ציטוט חזרה למעלה
חזרה לתוכן הדיון
The-QSite Moderator ת.הצטרפות: 29/12/2002 · הודעות: 1693 · מיקום: ISR
 

הודעה פורסם: 09/01/2005 - 23:27
נושא ההודעה:

שלב ריצה (או שלב הרצה, למרות שזה נשמע פחות טוב) נשמע מצויין גם מבחינה טכנית וגם מבחינה של תרגום מדוייק.
 
 צפיה בפרופיל המשתמש שלח הודעה פרטית ביקור באתר המפרסם  
תגובה  עם ציטוט חזרה למעלה
חזרה לתוכן הדיון
DecayCellלא בפורום כעת ת.הצטרפות: 28/04/2004 · הודעות: 400 · מיקום: נס-ציונה, ישראל
 

הודעה פורסם: 10/01/2005 - 00:18
נושא ההודעה:

אני חושב שמשהו בסגנון "דרגת הפעלה" יהיה תרגום טוב יותר, מכיוון שהמילה "שלב" מתייחסת לנקודה כלשהי ברצף לינארי של אירועים, אבל מנגנון ה-runlevels מאפשר לשלוט על דרגת הפעילות של המערכת (משתמש יחיד, ללא רשת, וכו').
"שלב" מתאים אומנם למקרה הנפוץ של תהליך האתחול/כיבוי, אבל זהו רק מקרה בודד, ולא מייצג את המנגנון כולו.
 
 צפיה בפרופיל המשתמש שלח הודעה פרטית ביקור באתר המפרסם מספר ICQ 
תגובה  עם ציטוט חזרה למעלה
חזרה לתוכן הדיון
The-QSite Moderator ת.הצטרפות: 29/12/2002 · הודעות: 1693 · מיקום: ISR
 

הודעה פורסם: 10/01/2005 - 00:26
נושא ההודעה:

הבעיה שדרגה בדרך כלל מתקשרת למצב בו ניתן להשוות בין A ל-B מכיוון שהדרגה היא נתון מייצג שלהם.
האם שלב 6 חזק משלב 1? האם שלב 4 חלש משלב 3? ממש לא.
ואכן, ה-runlevel מייצג בדרך כלל רצף כלשהו, גם אם אינו מונוטוני.
 
 צפיה בפרופיל המשתמש שלח הודעה פרטית ביקור באתר המפרסם  
תגובה  עם ציטוט חזרה למעלה
חזרה לתוכן הדיון
DecayCellלא בפורום כעת ת.הצטרפות: 28/04/2004 · הודעות: 400 · מיקום: נס-ציונה, ישראל
 

הודעה פורסם: 10/01/2005 - 00:31
נושא ההודעה:

למספרים הסודרים אומנם אין משמעות (למעשה, לחלקם דווקא יש, אבל נניח לזה) -- דרגת הפעולה של המערכת בעת עבודה עם משתמש בודד נמוכה מדרגת העבודה עם משתמשים רבים, קישור לרשת ושרת גרפי, ונמוכה משני אלו דרגת הפעולה בעת אתול המערכת -- שמבצעת רק את הפעולות הדרושות על מנת לכבות כמו שצריך את כל התהליכים הפועלים.
 
 צפיה בפרופיל המשתמש שלח הודעה פרטית ביקור באתר המפרסם מספר ICQ 
תגובה  עם ציטוט חזרה למעלה
חזרה לתוכן הדיון
אורח · ·
 

הודעה פורסם: 10/01/2005 - 00:43
נושא ההודעה: ראית את /usr/share/doc/sysv-rc/README.runlevels.gz?

אם יש לך Debian תסתכל ב
קוד:
/usr/share/doc/sysv-rc/README.runlevels.gz
.
 
   
תגובה  עם ציטוט חזרה למעלה
חזרה לתוכן הדיון
DecayCellלא בפורום כעת ת.הצטרפות: 28/04/2004 · הודעות: 400 · מיקום: נס-ציונה, ישראל
 

הודעה פורסם: 10/01/2005 - 01:10
נושא ההודעה:

אין לי, כך שיועיל מאוד אם תסגיר במה מדובר... Confused
 
 צפיה בפרופיל המשתמש שלח הודעה פרטית ביקור באתר המפרסם מספר ICQ 
תגובה  עם ציטוט חזרה למעלה
חזרה לתוכן הדיון
אורח · ·
 

הודעה פורסם: 10/01/2005 - 01:44
נושא ההודעה: zcat /usr/share/doc/sysv-rc/README.runlevels.gz

DecayCell :
אין לי, כך שיועיל מאוד אם תסגיר במה מדובר... Confused

הסבר קצר כבר קבלת, מה שנוח לי מאד. הנה הסבר ארוך. הפרטים מתאימים ל Debian אבל אני מאמין שלא יהיה קשה להתאים את זה להפצה אחרת.
שני ההבדלים העיקריים שאני יודע עליהם ביחס ל RH (ונגזרותיה?) הם:
1. RH שמה את ה ה rc directories במקום אחר (תחת init.d?).
2. ב RH משתמשים ב runlevel 3 כדי להעלות מערכת בלי X וב runlevel 5 למערכת עם X.
קוד:

                Order of scripts run in /etc/rc?.d
                ==================================

0. Overview.

   All scripts executed by the init system are located in /etc/init.d.
   The directories /etc/rc?.d (? = S, 0 .. 6) contain relative links to
   those scripts. These links are named S<2-digit-number><original-name>
   or K<2-digit-number><original-name>.

   If a scripts has the ".sh" suffix it is a bourne shell script and
   MAY be handled in an optimized manner. The behaviour of executing the
   script in an optimized way will not differ in any way from it being
   forked and executed in the regular way.

   The following runlevels are defined:

   N       System bootup (NONE).
   S       Single user mode (not to be switched to directly)
   0       halt
   1       single user mode
   2 .. 5  multi user mode
   6       reboot

1. Boot.

   When the systems boots, the /etc/init.d/rcS script is executed. It
   in turn executes all the S* scripts in /etc/rcS.d in alphabetical
   (and thus numerical) order. The first argument passed to the
   executed scripts is "start". The runlevel at this point is "N" (none).

   Only things that need to be run once to get the system in a consistent
   state are to be run. The rcS.d directory is NOT meant to replace rc.local
.
   One should not start daemons in this runlevel unless absolutely
   necessary. Eg, NFS might need the portmapper, so it is OK to start it
   early in the bootprocess. But this is not the time to start the
   squid proxy server.

2. Going multiuser.

  After the rcS.d scripts have been executed, init switches to the
   default runlevel as specified in /etc/inittab, usually "2".

   Init then executes the /etc/init.d/rc script which takes care of
   starting the services in /etc/rc2.d.

   Because the previous runlevel is "N" (none) the /etc/rc2.d/KXXxxxx
   scripts will NOT be executed - there is nothing to stop yet,
   the system is busy coming up.

   If for example there is a service that wants to run in runlevel 4
   and ONLY in that level, it will place a KXXxxxx script in
   /etc/rc{2,3,5}.d to stop the service when switching out of runlevel 4.
   We do not need to run that script at this point.

   The /etc.rc2.d/SXXxxxx scripts will be executed in alphabetical
   order, with the first argument set to "start".

3. Switching runlevels.

   When one switches from (for example) runlevel 2 to runlevel 3,
   /etc/init.d/rc will first execute in alphabetical order all K
   scripts for runlevel 3 (/etc/rc3.d/KXXxxxx) with as first argument
   "stop" and then all S scripts for runlevel 3 (/etc/rc3.d/SXXxxxx)
   with as first argument "start".

   As an optimization, a check is made for each "service" to see if
   it was already running in the previous runlevel. If it was, and there
   is no K (stop) script present for it in the new runlevel, there is
   no need to start it a second time so that will not be done.

   On the other hand, if there was a K script present, it is assumed the
   service was stopped on purpose first and so needs to be restarted.

   We MIGHT make the same optimization for stop scripts as well-
   if no S script was present in the previous runlevel, we can assume
   that service was not running and we don't need to stop it either.
   In that case we can remove the "coming from level N" special case
   mentioned above in 2). But right now that has not been implemented.

4. Single user mode.

   Switching to single user mode is done by switching to runlevel 1.
   That will cause all services to be stopped (assuming they all have
   a K script in /etc/rc1.d). The runlevel 1 scripts will then switch
   to runlevel "S" which has no scripts - all it does is spawn
   a shell directly on /dev/console for maintenance.

5. Halt/reboot

   Going to runlevel 0 or 6 will cause the system to be halted or rebooted,
   respectively. For example, if we go to runlevel 6 (reboot) first
   all /etc/rc6.d/KXXxxxx scripts will be executed alphabetically with
   "stop" as the first argument.

   Then the /etc/rc6.d/SXXxxxx scripts will be executed alphabetically
   with "stop" as the first argument as well. The reason is that there
   is nothing to start anymore at this point - all scripts that are
   run are meant to bring the system down.

   In the future, the /etc/rc6.d/SXXxxxx scripts MIGHT be moved to
   /etc/rc6.d/K1XXxxxx for clarity.

 
   
תגובה  עם ציטוט חזרה למעלה
חזרה לתוכן הדיון
DecayCellלא בפורום כעת ת.הצטרפות: 28/04/2004 · הודעות: 400 · מיקום: נס-ציונה, ישראל
 

הודעה פורסם: 10/01/2005 - 02:31
נושא ההודעה:

אוי, אני חושש שקרתה כאן אי-הבנה. Laughing
אני לא הבחור שפתח את השרשור עם שאלה, אלא חשבתי שכשהפנית לקובץ הנ"ל עשית זאת מכיוון שהוא רלוונטי לדרך בה עדיף יהיה לתרגם את המונח...
 
 צפיה בפרופיל המשתמש שלח הודעה פרטית ביקור באתר המפרסם מספר ICQ 
תגובה  עם ציטוט חזרה למעלה
חזרה לתוכן הדיון
The-QSite Moderator ת.הצטרפות: 29/12/2002 · הודעות: 1693 · מיקום: ISR
 

הודעה פורסם: 10/01/2005 - 07:57
נושא ההודעה:

DecayCell :
למספרים הסודרים אומנם אין משמעות (למעשה, לחלקם דווקא יש, אבל נניח לזה) -- דרגת הפעולה של המערכת בעת עבודה עם משתמש בודד נמוכה מדרגת העבודה עם משתמשים רבים, קישור לרשת ושרת גרפי, ונמוכה משני אלו דרגת הפעולה בעת אתול המערכת -- שמבצעת רק את הפעולות הדרושות על מנת לכבות כמו שצריך את כל התהליכים הפועלים.

יופי, את כל זה גם אני יכול להגיד, אבל זה עדיין לא אומר כי יש יחס סדר בין כל שלבי הריצה. לכן המונח דרגה לא מתאים לתאר את המושג runlevel כמו המונח שלב.
 
 צפיה בפרופיל המשתמש שלח הודעה פרטית ביקור באתר המפרסם  
תגובה  עם ציטוט חזרה למעלה
חזרה לתוכן הדיון
הצגת הודעות מלפני:     
מעבר אל:  
כל הזמנים הם GMT + 2 שעות
תגובה לנושא
צפיה בנושא הבא Printable version התחבר כדי לבדוק הודעות פרטיות צפיה בנושא הקודם
PNphpBB2 © 2003-2004 

תוכן הדיון

  1. אורח [RoadRunner]
  2. The-Q
  3. DecayCell
  4. The-Q
  5. DecayCell
  6. אורח
  7. DecayCell
  8. אורח
  9. DecayCell
  10. The-Q