⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 solaris.xtra.s99ntpd

📁 基于ntp协议的网络时间服务程序
💻 S99NTPD
字号:
#!/bin/shif [ $1 = "start" ]; then        if [ -x /usr/local/bin/xntpd ]; then                echo "Starting NTP daemon, takes about 1 minute... "		# dosynctodr may need to be left alone as of with Solaris 2.6		# The following line is unnecessary if you turn off 		# dosynctodr in /etc/system.                /usr/local/bin/tickadj -s                  /usr/local/bin/ntpdate -v server1 server2                sleep 5                /usr/local/bin/xntpd        fielse        if [ $1 = "stop" ]; then                pid=`/usr/bin/ps -e | /usr/bin/grep xntpd | /usr/bin/sed -e 's/^  *//' -e 's/ .*//'`                   if [ "${pid}" != "" ]; then                        echo "Stopping Network Time Protocol daemon "                        /usr/bin/kill ${pid}                fi             fifi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -