Page 1 of 1

rc.local on OpenSuse

Posted: 12 Oct 2012, 09:41
by viking60
OpenSuse does not have redhats rc.local so it is a PIA to get things running after the system is initialized.
But you can make your own rclocal (without the dot).

Code: Select all

#! /bin/sh
## This script simulates redhat's rc.local (Add commands at the end)
### BEGIN INIT INFO
# Provides: rclocal
# Required-Start: $local_fs $remote_fs $network
# X-UnitedLinux-Should-Start: $ALL
# Required-Stop:
# X-UnitedLinux-Should-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: Simulates rc.local
# Description: Simulates redhat's rc.local: contains
# commands to execute after system has booted (all services are already
# available)
### END INIT INFO
## Execute ony when service is started
case "$1" in
start)
## commands will be executed
;;
*)
exit 0
;;
esac


#  Add your commands bellow this line

Put it in /etc/rc.d/ and every time you need to autostart something you can edit /etc/rc.d/rclocal and put your commands at the bottom.

Re: rc.local on OpenSuse

Posted: 12 Oct 2012, 15:05
by rolf
Good stuff! :s Suse was on my short list in 2000 then I went with Mandrake. Who knows what tomorrow may bring? :confused