There is no rc.local in SUSE Linux 10, you want to use it you have to write an rc script file in the /etc/init.d/directory, then Use the chkconfig or inssev program to manage the configuration. The following small series will tell you about the specific steps.
Method a:
1. /etc/init.d/rc script editor, before the last exit 0, the following were added:
rc_local = /etc/rc.d/rc.local
current_runlevel=$(runlevel |
Awk '{ print $NF }')
if [ -x $rc_local ];then
((current_runlevel>1)) && ((current_runlevel<6)) & & {
echo -e "\ \ \ "
echo "-------------------- ---Startup $rc_local---------------------------"
$rc_local
}
fi
The above is the script content
2. Then create the /etc/rc.local file and give 755 permissions:
chmod 0755 /etc /rc.d/rc.local
Method 2:
1. Create the /etc/rc.d/rclocal file and add the following:
case "$1 " in
start)
if ! test -x /etc/init.d/rc.local ; then
echo '/etc/rc.local is not Exsit!'
exit 1
fi
/etc/init.d/rc.local &
;;
Stop)
;;
esac
The above is the content of the script
2.Create /etc/rc.d/rc.local and put you Boot scripts are executed Inside
3.chmod 0755 /etc/rc.d/rc.local /etc/rc.d/rclocal
4.chkconfig --add rclocal
The small series lists two methods for using rc.local. If you have other ways to use your friends, you can also interact with the Xiaobian message.
Some virus programs send malicious packets to Linux servers, which greatly consumes the bandwidth of
Under Linux, Puppet is a centralized configuration management system with its own d
Linux system hard disk will have some bad sectors in the process of use, if the bad track occurs in
The inode in the Linux file system is mainly used to store the basic information of files and direct
How to install Mongo extensions on Linux systems
Linux vim comment color can't see how to change?
Linux off screen splash screen method
How to use the backup-manager tool to back up the Linux system
Linux uses whiptail to form dialog box method
How does Linux use the OOM killer mechanism?
Linux yum prompts Loaded plugins error?
How to use NTP to synchronize Linux system time
How to improve the speed of Google Chrome running under Linux?
Teach you how to install Nessus software in Kali Linux
How to use the CRT command tool to view Linux system resource information
Notes on operating online replacement files on Linux systems
Win10 RS1 preview version 14271 task bar now white frame arrow? Teach you to solve
Sogou browser can not upload pictures, attachments resolved
Open sound acceleration under Win2003 system
Can't upgrade win10 detection prompt CPU temperature is too high how to do? Solution
What if the Win7 volume icon is gone?
The eight secret techniques let you use the computer without traces
Win10 system update 10532 prompt error 0xc1900204 solution
Solve the problem of no sound in Windows7 system
Win8 default input method setting diagram
Awk View the number of ip connections (common application one)