osx下自动启动svn

@import url(http://www.blogjava.net/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); @import url(http://www.blogjava.net/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); 在 /Library/LaunchDaemons下
新建 svn.sh, 内容如下

/usr/bin/svnserve -d -r /Users/YingBo/svn/repository


chmod +x svn.sh


新建com.skycity.svn.plist,内容如下

<?xml version="1.0" encoding="UTF-8"?>  

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

  <dict>

    <key>KeepAlive</key>

    <true/>

    <key>Label</key>

    <string>com.skycity.svn</string>

    <key>ProgramArguments</key>

    <array>

    <string>/Library/LaunchDaemons/svn.sh</string>

    </array>

  </dict>

</plist>


设置开机自动启动

 sudo launchctl load -w /Library/LaunchDaemons/com.skycity.svn.plist


设置开机不自动启动

 sudo launchctl unload -w /Library/LaunchDaemons/com.skycity.svn.plist



欢迎大家访问我的个人网站 萌萌的IT人

你可能感兴趣的:(osx下自动启动svn)