1
私は最近、非常に古いMacから新しいハードウェアにCVSサーバを移行しました。 cvs pserverを実行するためのLaunch Servicesの設定手順が見つかりました。時々動作します。OS X SierraのCVS pserverが断続的にタイムアウトします
/Library/LaunchDaemons/cvspserver.plistこの
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.apple.cvspserver</string>
<key>UserName</key>
<string>root</string>
<key>Program</key>
<string>/usr/local/bin/cvs</string>
<key>ProgramArguments</key>
<array>
<string>-f</string>
<string>--allow-root=/home/cvsroot</string>
<string>pserver</string>
</array>
<key>Sockets</key>
<dict>
<key>Listeners</key>
<dict>
<key>SockPassive</key>
<true/>
<key>SockServiceName</key>
<string>2401</string>
<key>SockType</key>
<string>stream</string>
</dict>
</dict>
<key>inetdCompatibility</key>
<dict>
<key>Wait</key>
<false/>
</dict>
</dict>
</plist>
CVSはしばらくのために働くだろう含まれていますが、時々私が買ってあげる:
cvs [update aborted]: connect to cvs(10.10.0.2):2401 failed: Operation timed out
再び時々動作しますしようとしています。私がこれをすれば:
sudo launchctl unload -w /Library/LaunchDaemons/cvspserver.plist
sudo launchctl load -w /Library/LaunchDaemons/cvspserver.plist
それはすぐにはうまくいくが、しばらくしてからタイムアウトが再び始まる。
アイデア?私はこれをデバッグする方法も知らない...
これは、サーバがスリープ状態になるほど簡単なことであり、想定されているようなネットワーク要求に応じて起きているわけではないと思います。私はそれが長期的に問題を解決するかどうかを見るために、睡眠を完全に無効にしました。 –