cpuplugd command-line syntax
You can start cpuplugd through a command interface.
Before you begin: Do not run multiple instances of
cpuplugd simultaneously. Check the cpuplugd status through the service utility before you issue the
cpuplugd command.
Where:
- -c or --config <config_file>
- specifies the path to the configuration file with the rule
(see Configuration file structure). You can find a commented
sample configuration file at /etc/cpuplugd.conf.Note: For kernels earlier than version 4.5, the sample configuration file was at /etc/sysconfig/cpuplugd
- -f or --foreground
- runs cpuplugd in the foreground and not as a daemon. If this option is omitted, cpuplugd runs as a daemon in the background.
- -V or --verbose
- displays verbose messages to stdout when cpuplugd is running in the foreground or to syslog when cpuplugd is running as a daemon in the background. This option can be useful for debugging.
- -h or --help
- displays help information for the command. To view the command man page, enter man cpuplugd. To view the man page for the configuration file, enter man cpuplugd.conf.
- -v or --version
- displays version information for cpuplugd.
Examples
- To start cpuplugd in daemon mode with a configuration file /etc/cpuplugd.conf:
# cpuplugd -c /etc/cpuplugd.conf
- To run cpuplugd in the foreground with verbose messages and with a configuration file /etc/cpuplugd.conf:
# cpuplugd -V -f -c /etc/cpuplugd.conf