Erin Clock (g1r1) | 2009-11-30 08:56 |
IL configuration deleter (g1r1) | 2009-11-30 09:08 |
Shaman Japanese Language Pack (g3r1) | 2009-11-30 09:17 |
Simple P2P Messenger (Jasmine) (g3r6) | 2009-11-30 09:21 |
On ArchLinux, sometimes network daemon and synchronizing time via the internet got slow (However the time is synchronized properly.).It made me annoyed, and I decided to solve it.
This document is for ArchLinux only, If your Linux is not ArchLinux and use this way, you may get troubles.
- #!/bin/bash
- . /etc/rc.conf
- . /etc/rc.d/functions
- case "$1" in
- start)
- stat_busy "Setting up network stuff"
- stat_done;
- /etc/rc.d/network start
- /etc/rc.d/ntpdate start
- /etc/rc.d/ntpd start
- ;;
- stop)
- stat_busy "Shutting down network stuff"
- stat_done;
- /etc/rc.d/network stop
- /etc/rc.d/ntpdate stop
- /etc/rc.d/ntpd stop
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
- esac
This file is called "networktime" in this document.
Delete daemon: network ntpdate, and ntpd
Add daemon: networktime
[ページ情報]
更新日時: 2010-12-05 09:34:24, 更新者: green_12512
[ライセンス]
GNU Free Documentation License
[権限]
表示:無制限, 編集:ログインユーザ, 削除/設定:メンバー