1
我最近将我的cvs服务器从一台非常旧的mac迁移到了一些新的硬件上。我找到了设置Launch Services来运行cvs pserver的说明,并且它有时可用。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
它会工作的时候了,但经过一段时间的超时重新开始。
任何想法?我甚至不知道如何调试...
我认为这可能与服务器将要进入睡眠状态一样简单,并且它不会响应类似网络请求的唤醒。我已经完全禁用睡眠,看看是否可以长期解决问题。 –