Create rc.local in Fedora


The /etc/rc.d/rc.local local customization script is no longer included by default. Administrators who need this functionality merely have to create this file, make it executable, and it will run on boot. Upgrades are not affected by this change.

# touch /etc/rc.d/rc.local

Is your rc.local executable? if not make it executable

# chmod a+x /etc/rc.d/rc.local

Be also sure to add at the very top of the file the shebang line:

#!/bin/sh

another thing you should be sure of is to add a trailing line like this:

exit 0

because the booting process always expects this script to end successfully and return a 0 exit value.



from : http://forums.fedoraforum.org/showthread.php?t=291889
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章