rc.local in Suse ---Start a command at boot time in SuSE
rc.local in Suse
Suse do not have any rc.local script..
Which this script useful is..
In RedHat, after the init start, it will invoke the command in rc.local..
It is very useful which almost same function with startup in windows..
1. create a new file named rclocal at /etc/init.d/
vi /etc/init.d/rclocal
2. Then add the the following in the beginning script..
#!/bin/sh
### BEGIN INIT INFO
# Provides: rclocal
# Required-Start: $network $remote_fs
# Required-Stop: $network $remote_fs
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: whatever
### END INIT INFO
# " ADD THE COMMAND WHICH WE WANT TO START AT BOOTING"
3. Change mode for the file
chmod 755 /etc/init.d/rclocal
4. add service
chkconfig --add rclocal
Suse do not have any rc.local script..
Which this script useful is..
In RedHat, after the init start, it will invoke the command in rc.local..
It is very useful which almost same function with startup in windows..
1. create a new file named rclocal at /etc/init.d/
vi /etc/init.d/rclocal
2. Then add the the following in the beginning script..
#!/bin/sh
### BEGIN INIT INFO
# Provides: rclocal
# Required-Start: $network $remote_fs
# Required-Stop: $network $remote_fs
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: whatever
### END INIT INFO
# " ADD THE COMMAND WHICH WE WANT TO START AT BOOTING"
3. Change mode for the file
chmod 755 /etc/init.d/rclocal
4. add service
chkconfig --add rclocal
Comments
Post a Comment