osx - How to run a non-brew app on startup in OS X Sierra -
i had install older version of elasticsearch (2.3.3) source. binary located in /opt/local/elasticsearch-2.3.3/bin/ created following file
/library/launchdaemons/org.elasticsearch.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>org.elasticsearch</string> <key>programarguments</key> <array> <string>/opt/local/elasticsearch-2.3.3/bin/elasticsearch</string> </array> <key>username</key> <string>root</string> <!-- <key>groupname</key> <string>staff</string> --> <key>workingdirectory</key> <string>/opt/local/elasticsearch-2.3.3/bin</string> <key>keepalive</key> <true/> <key>runatload</key> <true/> </dict> </plist> i issue following command:
sudo launchctl load -w /library/launchdaemons/org.elasticsearch.plist when inquire sudo launchctl list | grep elastic returns org.elasticsearch. when check if elasticsearch running ps ax | grep elastic not running.
is there wrong .plist file?
is there wrong .plist file?
it lacks of <key>program</key> @ least there's nothing run @ all.
since it's apple specific question you'd better use https://apple.stackexchange.com/
Comments
Post a Comment