osx的/etc/init.d等效项? [英] osx' s /etc/init.d equivalent?

查看:163
本文介绍了osx的/etc/init.d等效项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆