HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 12

K480syncer

Page 12 highlights

System Startup and Shutdown 2 Script was skipped due to overriding control variables from /etc/rc.config.d files or for other reasons and did not actually do anything. Causes the status N/A to appear in the checklist. 3 (Reserved for key system components.) Script executed normally and requires an immediate system reboot for the changes to take effect . Configuration Variable Scripts Configuration variable scripts are designed to customize the execution scripts. The goal here is to separate startup files from configuration files so that upgrading your system does not overwrite its configuration. These scripts are written for the POSIX shell (/usr/bin/sh or /sbin/sh), and not the Bourne shell (ksh, or csh). In some cases, these files must also be read, and possibly modified, by other scripts or the SAM program. For this reason, each variable definition must appear on a separate line, in the syntax: variable=value No trailing comments may appear on a variable definition line. Comment statements must be on separate lines, with the # comment character in column 1. An example of the required syntax for configuration files is given below: # Cron configuration. See cron(1m) # # CRON: Set to 1 to start cron daemon # CRON=1 Both the execution scripts and the configuration files are named after the subsystem they control. For example, the /sbin/init.d/cron execution script controls the cron daemon, and it is customized by the /etc/rc.config.d/cron configuration variable script. Link Files These files control the order in which execution scripts run. The /sbin/rc#.d (where # is a run-level) directories are startup and shutdown sequencer directories. They contain only symbolic links to the execution scripts in /sbin/init.d, which are executed by /sbin/rc on transition to a specific run level. For example, the /sbin/rc3.d directory contains symbolic links to scripts that are executed when entering run level 3. These directories contain two types of link files: start links and kill links. Start links have names beginning with the capital letter S and are invoked with the start argument at system boot time or on transition to a higher run level. Kill links have names beginning with the capital letter K and are invoked with the stop argument at system shutdown time or when moving to a lower run level. Further, all link files in a sequencer directory are numbered to ensure a particular execution sequence. Each script has, as part of its name, a three-digit sequence number. This, in combination with the start and kill notation, provides all the information necessary to properly start up and shut down a system. The table below shows some samples from the run-level directories. (The sequence numbers shown are only examples and may not accurately represent your system.) /sbin/rc0.d K480syncer K800killall K900hfsmount /sbin/rc1.d S100hfsmount S320hostname S440savecore S500swapstart S520syncer K270cron K280lp K390rbootd K460sendmail /sbin/rc2.d S340net S500inetd S540sendmail S610rbootd S720lp S730cron K900nfs.server /sbin/rc3.d S000nfs.server 7

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

System Startup and Shutdown
7
2
Script was skipped due to overriding control variables from
/etc/rc.config.d
files or for other
reasons and did not actually do anything. Causes the status
N/A
to appear in the checklist.
3
(Reserved for key system components.)
Script executed normally and requires an immediate
system reboot for the changes to take effect .
Configuration Variable Scripts
Configuration variable scripts are designed to customize the execution scripts. The goal here is to separate
startup files from configuration files so that upgrading your system does not overwrite its configuration.
These scripts are written for the POSIX shell (
/usr/bin/sh
or
/sbin/sh
), and not the Bourne shell (
ksh
, or
csh)
. In some cases, these files must also be read, and possibly modified, by other scripts or the SAM
program. For this reason, each variable definition must appear on a separate line, in the syntax:
variable=value
No trailing comments may appear on a variable definition line. Comment statements must be on separate
lines, with the
#
comment character in column
1
. An example of the required syntax for configuration files
is given below:
# Cron configuration. See cron(1m)
#
# CRON: Set to 1 to start cron daemon
#
CRON=1
Both the execution scripts and the configuration files are named after the subsystem they control.
For
example, the
/sbin/init.d/cron
execution script controls the
cron
daemon, and it is customized by the
/etc/rc.config.d/cron
configuration variable script.
Link Files
These files control the order in which execution scripts run. The
/sbin/rc#.d
(where
#
is a run-level)
directories are startup and shutdown sequencer directories. They contain only symbolic links to the
execution scripts in
/sbin/init.d
, which are executed by
/sbin/rc
on transition to a specific run level. For
example, the
/sbin/rc3.d
directory contains symbolic links to scripts that are executed when entering run
level
3
.
These directories contain two types of link files:
start
links and
kill
links.
Start
links have names
beginning with the capital letter
S
and are invoked with the
start
argument at system boot time or on
transition to a higher run level.
Kill
links have names beginning with the capital letter
K
and are invoked
with the
stop
argument at system shutdown time or when moving to a lower run level.
Further, all link files in a sequencer directory are numbered to ensure a particular execution sequence. Each
script has, as part of its name, a three-digit sequence number. This, in combination with the
start
and
kill
notation, provides all the information necessary to properly start up and shut down a system.
The table
below shows some samples from the run-level directories. (The sequence numbers shown are only
examples and may not accurately represent your system.)
/sbin/rc0.d
/sbin/rc1.d
/sbin/rc2.d
/sbin/rc3.d
K480syncer
S100hfsmount
S340net
S000nfs.server
K800killall
S320hostname
S500inetd
K900hfsmount
S440savecore
S540sendmail
S500swapstart
S610rbootd
S520syncer
S720lp
S730cron
K270cron
K280lp
K900nfs.server
K390rbootd
K460sendmail