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/ からデーモンを呼び出すので、そのスクリプトを引数で編集します。
編集:説明するリンクがいくつかあります:
https://wiki.archlinux.org/index.php/Rc.conf#Daemons
https://wiki.archlinux.org/index.php/Writing_rc.d_scripts