Autostart Upsource server on Mac OS X

Overview:

This article describes how to configure Upsource to autostart on Mac OS X via a daemon. 

 

Steps:

  1. Install Upsource and make sure it works if started from the command line with bin/upsource.sh start
  2. Run the following command to install Upsource daemon: sudo bin/upsource.sh daemon install 

  3. Run the following command to launch the daemon: sudo bin/upsource.sh daemon start

The Upsource server will now start automatically when the machine starts.

 

Note:  Plist with the following content will be created by Upsource under /Library/LaunchDaemons directory:

<?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>Upsource</string>
<key>WorkingDirectory</key>
<string>/path/to/upsource</string>
<key>ProgramArguments</key>
<array>
<string>/bin/sh</string>
<string>/path/to/upsource/bin/upsource.sh</string>
<string>run</string>
<string>from-service</string>
</array>
<key>StandardOutPath</key>
<string>/path/to/upsource/logs/launcher-daemon-stdout.log</string>
<key>StandardErrorPath</key>
<string>/path/to/upsource/logs/launcher-daemon-stderr.log</string>
<key>UserName</key>
<string>UpsourceUser</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<false/>
<key>ExitTimeOut</key>
<integer>1810</integer>
</dict>
</plist>

0 out of 0 found this helpful
2 comments

Is there any alternative for Linux (Debian)?

0

Unfortunately no, please watch corresponding request - https://youtrack.jetbrains.com/issue/UP-7185  

0

Please sign in to leave a comment.

Have more questions?

Submit a request