Datasheet
“main” (Installation and Administration) — 2004/6/25 — 13:29 — page 343 — #369
i
i
i
i
i
i
i
i
16
Linux on Mobile Devices
16.2.5 Switching Configuration Profiles
The command scpm switch work switches to another profile (the profile
work, in this case). Switch to the active profile to save modified settings of
the system configuration. Alternatively, use scpm reload to do this.
When switching profiles, SCPM first checks which resources of the active
profile have been modified. It then queries whether the modification of
each resource should be added to the active profile or dropped. If you pre-
fer a separate listing of the resources (as in former versions of SCPM) use
the switch command with the -r parameter: scpm switch -r work.
SCPM then compares the current system configuration with the profile to
which to switch. In this phase, SCPM evaluates which system services need
to be stopped or restarted due to mutual dependencies or to reflect the
changes in configuration. This is like a partial system reboot that concerns
only a small part of the system while the rest continues operating without
change.
It is only at this point that the system services are stopped, all modified re-
sources (e.g., configuration files) are written, and the system services are
restarted.
16.2.6 Advanced Profile Settings
You can enter a description for every profile that is displayed with
scpm list. For the active profile, set it with scpm set description
"text". Provide the name of the profile for inactive profiles, for instance,
scpm set description "text" work. Sometimes it might be desir-
able to perform additional actions not provided by SCPM while switching
profiles. Attach up to four executables for each profile. They are invoked at
different stages of the switching process. These stages are referred to as:
prestop prior to stopping services when leaving the profile
poststop after stopping services when leaving the profile
prestart prior to starting services when activating the profile
poststart after starting services when activating the profiles
Switching from profile work to profile home thus proceeds as follows:
1. The prestop action of the profile work is executed.
343SUSE LINUX Enterprise Server










