Sun Java System Calendar Server 6 2005Q4 管理指南

修正 stop-cal 問題

關閉時需要考量以下兩個不同的問題:

Procedure停止子程序

發出 stop-cal 後,很可能未停止某些子程序。例如,stop-cal 可能停止了 cshttpd 父系程序,但未停止任何 cshttpd 子程序。在此情況下,您必須使用以下程序分別停止其餘 Calendar Server 程序:

步驟
  1. 以對 Calendar Server 執行時所在的系統具有管理權限的使用者身份登入。

  2. 透過為每種服務輸入 ps 指令,確定其餘 Calendar Server 程序的程序 ID (PID):


    ps -elf | grep cs-process
    

    其中 cs-processenpdcsnotifydcsdwpdcsadmindcshttpd。例如:


    ps -elf | grep cshttpd
  3. 使用仍在執行的各程序的 PID,輸入 kill -15 指令強制結束該程序。例如:kill -15 9875

  4. 再次輸入各 ps 指令,以確定所有 Calendar Server 程序均已停止。


    If a Calendar Server process is still running, 
       enter a kill -9 command to kill it. 
    For example: kill -9 9875

    備註 –

    在執行 Calendar Server 的 Linux 系統上,如果您使用 ps 指令搜尋行事曆程序,其結果可能會令人費解。在 Linux 上,ps 指令傳回正在執行的執行緒清單,而非程序清單。尚無可以僅顯示程序的已知解決方法。


Procedure不正確關閉後回復

如果 Calendar Server 未正確關閉,請執行以下步驟:

步驟
  1. 執行先前程序修正 stop-cal 問題中的步驟。

  2. 手動刪除 LDAP 資料快取記憶體資料庫目錄中的所有檔案。

    這些剩餘檔案可能會毀壞資料庫。若要刪除這些檔案,請:

    1. 變更至 LDAP 資料快取記憶體目錄。

      預設為 /opt/SUNWics5/csdb/ldap_cache,但是請使用 ics.conf 檔案中的 local.ldap.cache.homedir.path 參數所指向的目錄。

    2. 移除目錄中的所有檔案。

      例如: rm *.*

    3. 檢查以確定已移除所有檔案。

      例如: ls

  3. 重新啟動 Calendar Server。

    cal_svr_base /SUNWics5/cal/sbin/start-cal

    如需有關如何配置 LDAP 資料快取的說明,請參閱為 LDAP 配置 Calendar Server。如需有關 LDAP 資料快取記憶體的更多資訊,請參閱「Sun Java System Communications Services 6 2005Q4 Deployment Planning Guide」