在 /Library/LaunchDaemons 下放了 aria2c.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>Label</key>
<string>Aria2c</string>
<key>Program</key>
<string>/usr/local/Cellar/aria2/1.21.0/bin/aria2c</string>
<key>KeepAlive</key>
<true/>
<key>NetworkState</key>
<true/>
<key>LaunchOnlyOnce</key>
<true/>
</dict>
</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>Label</key>
<string>Aria2c</string>
<key>Program</key>
<string>/usr/local/Cellar/aria2/1.21.0/bin/aria2c</string>
<key>KeepAlive</key>
<true/>
<key>NetworkState</key>
<true/>
<key>LaunchOnlyOnce</key>
<true/>
</dict>
</plist>