I want to start up the Jenkins service installed on my mac automatically while system reboots after power loss. Can anyone please suggest to me how we can restart Jenkins automatically.
Asked
Active
Viewed 6,163 times
4
-
Did you try this solution? http://stackoverflow.com/questions/3715606/how-to-install-hudson-as-a-service-on-os-x – Bruno Lavit Oct 09 '15 at 12:49
-
Thanks Bruno Lavit, the link u provided its all for manually restarting the service i think, do u have any idea on automatically restart after rebooting the mac. – Lakshmi Reddy Oct 09 '15 at 13:31
-
I had a look on Google and I don't find any solution for the moment :( – Bruno Lavit Oct 09 '15 at 15:45
-
Fixed English to make it easier to read for others. – Rohit Gupta Oct 11 '15 at 08:36
1 Answers
3
The OS X installer provided for Jenkins will create a service to start it automatically after reboot.
The service uses launchd to run a scheduled job that checks whether Jenkins is running and starts it if not. There are a couple of links to further details at the top of the Jenkins Wiki page, but this page may be a better overview for you.

gareth_bowles
- 20,760
- 5
- 52
- 82
-
Thanks **gareth_bowles**, I gone through above OSX Installer page there i am unable to find any info. related to automatically starting the jenkins service, Can you please explain me bit clear if u get some time. – Lakshmi Reddy Oct 11 '15 at 15:20
-
Amended my answer to link to details on the MacOS launch daemon, which controls the Jenkins service. – gareth_bowles Oct 12 '15 at 15:34