當rc.local沒有執行預期中的動作可以依照下方方式來找出問題,通常是指令打錯居多!
To be sure rc.local is being called just append to it a line for debugging:
echo $(date) - Running >> /var/test.run
Reboot and check /var/test.run
To check your scripts errors just use:
/path/to/script > /var/myscript.log 2>&1
This will make sure the output and errors will be written to /var/myscript.log
修改完畢執行#sh /etc/rc.d/rc.local即可測試不用重新開機!
2011年3月17日 星期四
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言