Tuesday, December 20, 2011

rc.local on SuSE and openSuSE



create a file under:
/etc/rc.d/rclocal



--- USE the following header in the file content ---
#! /bin/sh
# Copyright (c) 1995-2000 SuSE GmbH Nuernberg, Germany.
#
# Author: Felix Wu
#
# /etc/init.d/rclocal
#
### BEGIN INIT INFO
# Provides: rclocal
# Required-Start: $network $remote_fs
# Required-Stop: $network $remote_fs
# Default-Start: 5
# Default-Stop: 0 1 2 3 6
# Description: Felix's rclocal
### END INIT INFO
--- EOF ---

to make it effective:
chmod 755 rclocal
chkconfig rclocal on

No comments: