Datasheet
“main” (Installation and Administration) — 2004/6/25 — 13:29 — page 344 — #370
i
i
i
i
i
i
i
i
2. The services are stopped.
3. The poststop action of the profile work is executed.
4. The system configuration is changed.
5. The prestart action of the profile home is executed.
6. The services are started.
7. The poststart action of the profile home is executed.
Attach these actions with the command set by entering scpm set
prestop <filename>, scpm set poststop <filename>, scpm set
prestart <filename>, or scpm set poststart <filename>. The
call must be made to an executable — scripts must refer to the correct inter-
preter and must be executable at least for the superuser.
Query all additional settings entered with set with get. The command
scpm get poststart, for instance, returns the name of the poststart call
or simply nothing if nothing has been attached.
Reset such settings by overwriting with "". The command scpm set
prestop "" removes the attached prestop program.
All set and get commands can be applied to an arbitrary profile in the
same manner as comments are added. For example, scpm get prestop
<filename work> or scpm get prestop work.
Caution
These scripts or programs should not be modifiable by any user
because they are executed with the rights of the superuser. It is
recommended to make scripts only readable to the superuser
because they can contain sensitive information. It is best to pro-
vide these programs with the permissions -rwx---- root
root with the commands chmod 700 variablefilename and
chown root.root <filename>.
Caution
16.2.7 Profile Selection at Boot
It is possible to select a profile during the boot process by providing the
boot parameter PROFILE=<name-of-the-profile> at the boot prompt.
In the boot loader configuration (/boot/grub/menu.lst), the option
title reflects the name of the profile. See Example 16.1 on the next page.
344 16.2. SCPM — System Configuration Profile Management










