-
smcd -F
-
Run the service in the foreground. This option prevents the service from running as a daemon.
-
smcd -c
-
Write log entries also to the console (stderr).
-
smcd -h
-
Print help information to the standard output.
-
smcd -w
-
Wait for the debugger to be attached to the process.
-
smcd -x
-
Enable debug mode. Debug mode provides verbose logs and runtime checks.
-
smcd -f log_facility
-
Specify the log facility to use when logging to syslog. Possible values are daemon, user, and local0 through local7. The default is daemon.
To set this up, you must also configure your /etc/syslog.conf
file to specify handling for the facility.
-
smcd -k shutdown
-
Send a signal to the running copy of smcd to shut down and then exit. The running copy is identified by a process with the pid that matches the pid stored in the pid file. The process attempts to perform a graceful shutdown.
When specifying the -k option and using a non-default pid file, the -p option must also be given to ensure that the signal is sent to the correct smcd instance, even if there is only a single smcd instance running.
-
smcd -k report
-
Send a signal to the running copy of smcd to report its status into a log file. The default log file is /var/log/symantec/smcd_report.log
, but you can configure the log location with the -r option.
When specifying the -k option and using a non-default pid file, the -p option must also be given to ensure that the signal is sent to the correct smcd instance, even if there is only a single smcd instance running.
-
smcd -k check
-
Send a signal to the running copy of smcd to determine if smcd is currently running, print out a message, and exit. The running copy is identified by a process with the pid that matches the pid stored in the pid file. If there is a running copy, the command returns a 0. If there is no running copy, the command returns a 1.
When specifying the -k option and using a non-default pid file, the -p option must also be given to ensure that the signal is sent to the correct smcd instance, even if there is only a single smcd instance running.
-
smcd -l log_severity
-
Log all messages up to and including the specified severity level. The severity level must be one of the following: none, emerg, alert, crit, error, warning, notice, info, debug.
-
smcd -p pid_file
-
Specify to use the given pid file instead of the default/var/run/symantec/smcd.pid
. You should always use absolute path names when configuring smcd.
By default, /var/run/symantec/smcd.pid stores the process ID (pid) of the currently running copy of smcd. When smcd is terminated, this file is deleted.
-
smcd -r report_file
-
Specifies the use of a given report file instead of the default /var/log/symantec/smcd_report.log
. You should always use absolute path names when configuring smcd.
-
smcd -s path
-
Set the working directory that the service runs in. You should always use absolute path names when configuring smcd.
This path typically does not need to be changed from the default, which is the root directory (/).
Thanks for your feedback. Let us know if you have additional comments below. (requires login)