How to install Hudson as a service on OS X?

后端 未结 3 1510
無奈伤痛
無奈伤痛 2020-12-25 08:24

Running hudson it is easy but currently the documentation is missing the tutorial for installing an running hudson as a daemon/service on OS X.

When you switch to p

3条回答
  •  心在旅途
    2020-12-25 08:45

    The tiny solution I had (which also starts at login) was this: First run hudson manually once (so it builds it's .hudson dir). create a hudson.command file somewhere on your machine in OSX with content a little like this:

    nohup java -jar .hudson/hudson.war --httpPort=8080 &
    

    Then, open up system preferences, select your user, and then Login Items. Click the "+" button, and you'll be able to select the command with finder.

    Next time you log in, hudson will have started.

    Disadvantages:

    • Hudson has no specific user - it's just you
    • hudson is on port 8080
    • Hudson restarts mean finding the process, killing it and starting the hudson.command file again.
    • Hudson starts only once a user has logged in.

提交回复
热议问题