osx的/etc/init.d等效项? [英] osx' s /etc/init.d equivalent?
问题描述
我正在Mac上安装gitlab,但后者主要是为linux os设计的.按照文档操作,我必须运行此命令
curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/master/init.d/gitlab
什么是/etc/init.d文件夹的mac等效文件(我知道launchd
命令,但是我正在寻找mac的等效的/etc/init.d文件夹)?
AFAIK,launchd
主要将其数据存储在/Library/LaunchAgents/
和/Library/LaunchDaemons/
的.plist
文件中,有时存储在主目录中的那些子目录中. 本教程和此参考.>
对于您的具体问题,要将launchd
设置为运行gitlab,请尝试使用上面的链接将该init.d
脚本转换为.plist
文件.
I am installing gitlab on a mac but this latter is mainly designed for linux os. Following the doc, I have to run this command
curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/master/init.d/gitlab
What is the mac equivalent of the /etc/init.d folder (I know about the launchd
command but I am looking for the mac's equivalent /etc/init.d folder) ?
AFAIK, launchd
stores its data primarily in .plist
files in /Library/LaunchAgents/
and /Library/LaunchDaemons/
, and occasionally in those subdirectories in your home directory. More on those files in this tutorial and this reference.
For your problem specifically, to set launchd
up to run gitlab, try converting that init.d
script to a .plist
file with the links above.
这篇关于osx的/etc/init.d等效项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!