github.com/yaling888/clash@v1.53.0/examples/daemon/macos/org.eu.clashplus.plist (about)

     1  <!--
     2  Install:
     3  curl -LO https://github.com/yaling888/clash/raw/plus-pro/examples/daemon/macos/org.eu.clashplus.plist
     4  cp org.eu.clashplus.plist ~/Library/LaunchAgents/
     5  launchctl load -w ~/Library/LaunchAgents/org.eu.clashplus.plist
     6  launchctl start org.eu.clashplus
     7  launchctl list | grep org.eu.clashplus
     8  ps -ef | grep clash
     9  cat ~/.config/clash/clashplus.log
    10  
    11  Uninstall:
    12  launchctl stop org.eu.clashplus
    13  launchctl unload -w ~/Library/LaunchAgents/org.eu.clashplus.plist
    14  rm ~/Library/LaunchAgents/org.eu.clashplus.plist
    15  rm ~/.config/clash/clashplus.log
    16  
    17  executable file: /usr/local/bin/clash
    18  configuration folder: ~/.config/clash/
    19  -->
    20  <?xml version="1.0" encoding="UTF-8"?>
    21  <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    22  <plist version="1.0">
    23  <dict>
    24      <key>Label</key>
    25      <string>org.eu.clashplus</string>
    26      <key>ProgramArguments</key>
    27      <array>
    28          <string>sudo</string>
    29          <string>/usr/local/bin/clash</string>
    30      </array>
    31      <key>KeepAlive</key>
    32      <dict>
    33          <key>SuccessfulExit</key>
    34          <false/>
    35      </dict>
    36      <key>RunAtLoad</key>
    37      <true/>
    38      <!-- remove the comment below and replace the 'your_username' with your own username, do not use relative path. -->
    39      <!--
    40      <key>StandardErrorPath</key>
    41      <string>/Users/your_username/.config/clash/clashplus.log</string>
    42      <key>StandardOutPath</key>
    43      <string>/Users/your_username/.config/clash/clashplus.log</string>
    44      -->
    45  </dict>
    46  </plist>