简体   繁体   English

系统重新启动时自动启动Jenkins服务

[英]Startup Jenkins service automatically on system reboot

I want to start up the Jenkins service installed on my mac automatically while system reboots after power loss. 我想在断电后系统重启时自动启动Mac上安装的Jenkins服务。 Can anyone please suggest to me how we can restart Jenkins automatically. 任何人都可以向我建议我们如何自动重新启动Jenkins。

The OS X installer provided for Jenkins will create a service to start it automatically after reboot. 为Jenkins提供OS X安装程序将创建一个服务,以在重新启动后自动启动它。

The service uses launchd to run a scheduled job that checks whether Jenkins is running and starts it if not. 该服务使用launchd运行计划的作业,该作业检查Jenkins是否正在运行,如果没有运行,则启动它。 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. 在Jenkins Wiki页面顶部,有几个指向更多详细信息的链接,但是此页面可能是您更好的概览。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM