Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我向 rc.conf 添加一个守护进程,我该如何向它传递参数?
例如
DAEMONS = (sshd mongodb ...)
我怎样才能传递--replSet给mongodb守护进程?
--replSet
mongodb
您应该尝试在/etc/mongodb.conf
/etc/mongodb.conf
我认为您没有传递任何东西,它从 /etc/rc.d/ 调用守护程序,因此您可以使用 args 编辑该脚本。
编辑:这里有一些解释的链接:
https://wiki.archlinux.org/index.php/Rc.conf#Daemons
https://wiki.archlinux.org/index.php/Writing_rc.d_scripts