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.
だから私は /etc/rc3.d にいて、すべての "S" スクリプトを開始し、すべての "K" スクリプトを強制終了したいと考えています。試し# ./S* startていますが、開始引数が表示されません。構文を調整して、開始を S に、終了を K に渡すにはどうすればよいですか?
# ./S* start
I have to mention the most direct way: switch to runlevel 2.
telinit 2
If for some reason you don't want to do that, you could explicitly loop over the scripts.
for K in /etc/rc2.d/K*; do "$K" stop; done for S in /etc/rc2.d/S*; do "$S" start; done