EasyManua.ls Logo

Sybase Adaptive Server - Page 39

Sybase Adaptive Server
150 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CHAPTER 2 Starting and Stopping Servers
Configuration Guide 23
ln /etc/init.d/script_name /etc/rc#.d/S##script_name
For Linux:
Use
ln -s to create symbolic links from the script name to the appropriate
run control (rc) directory, rc# where # is the run level. Use syntax like the
following:
ln -s /etc/init.d/script_name /etc/rc#.d/S##script_name
When you type the command to create this link, add an uppercase “S” and
a two-digit sequence number preceding the name of the script file. “S”
indicates a start-up file. The sequence number is necessary because files in
the rc directory are executed in order of their numbers. This file should be
executed last, so you should use a sequence number that follows all
existing numbers in ASCII order.
You can perform an
ls command on the rc directory to view existing
sequence numbers. For example:
ls /etc/rc3.d/S*
returns:
/etc/rc3.d/S10syslog
/etc/rc3.d/S15nfs.server
/etc/rc3.d/S21rfs
If your script is named sybstart, type the following:
ln /etc/init.d/sybstart /etc/rc3.d/S77sybstart
In this example, you can use any number greater than 27 in place of 77.
For Linux:
You can perform an ls command on the rc directory to view existing sequence
numbers. For example:
ls /etc rc5.d/S*
returns:
/etc/rc5.d/S12syslog
/etc/rc5.d/S14nfslock
/etc/rc5.d/S27ypbind
and so on. If your script is named sybstart, type the following:
ln -s /etc/init.d/sybstart /etc/rc5.d/S99sybstart
In this example, you can use any number greater than 27 in place of 99.

Table of Contents