문제

If I add a daemon to rc.conf, how can I then pass arguments to it?

Eg

DAEMONS = (sshd mongodb ...)

How can I pass --replSet to the mongodb daemon?

도움이 되었습니까?

해결책

I don't think you pass anything, it calls the daemon from /etc/rc.d/ so you'd edit that script with the args.

EDIT: here are some links that explain:

https://wiki.archlinux.org/index.php/Rc.conf#Daemons

https://wiki.archlinux.org/index.php/Writing_rc.d_scripts

다른 팁

You should try to set this behaviour in /etc/mongodb.conf

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top