Hi

I have been attempting to launch Artifactory under a daemon process, but
haven't had any luck as yet.

This is what I have put together so far as a plist file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot;
&quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;>
<plist version="1.0">
  <dict>
    <key>Label</key>
    <string>com.jfrog.artifactory</string>

    <key>UserName</key>
    <string>artifactory</string>

    <key>WorkingDirectory</key>
    <string>/Users/Shared/Artifactory/artifactory</string>

    <key>EnvironmentVariables</key>
    <dict>
      <key>CATALINA_BASE</key>
      <string>/Users/Shared/Artifactory/artifactory/tomcat</string>

      <key>CATALINA_HOME</key>
      <string>/Users/Shared/Artifactory/artifactory/tomcat</string>

      <key>CATALINA_TMPDIR</key>
      <string>/Users/Shared/Artifactory/artifactory/tomcat/temp</string>

      <key>JRE_HOME</key>
     
<string>/Library/Java/JavaVirtualMachines/jdk1.8.0_71.jdk/Contents/Home</string>

      <key>CLASSPATH</key>
     
<string>/Users/Shared/Artifactory/artifactory/tomcat/bin/bootstrap.jar:/Users/Shared/Artifactory/artifactory/tomcat/bin/tomcat-juli.jar</string>

      <key>CATALINA_PID</key>
     
<string>/Users/Shared/Artifactory/artifactory/run/artifactory.pid</string>
    </dict>

    <key>ProgramArguments</key>
    <array>
      <string>bin/artifactoryctl</string>
      <string>start</string>
    </array>

    <key>KeepAlive</key>
    <true/>

    <key>StandardOutPath</key>
    <string>/Users/Shared/Artifactory/stdout/log.out</string>

    <key>StandardErrorPath</key>
    <string>/Users/Shared/Artifactory/stderr/log.out</string>
  </dict>
</plist>

All I get to see in the standard output a is the following:

/usr/bin/java
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.
/usr/bin/java
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.
/usr/bin/java
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.
/usr/bin/java
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.
/usr/bin/java
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.
/usr/bin/java
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.
/usr/bin/java
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.
/usr/bin/java
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.

So I am assuming it's crashing and being restarted, but there's no other
hint as to why that might be!  When I run it as the 'artifactory' user from
the command line, it all works as expected.

Any ideas or direction would be appreciated.



--
View this message in context: 
http://forums.jfrog.org/Launching-Artifactory-as-a-Daemon-on-Mac-OS-X-tp7580762.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to