This article explains the default sm_service install parameters and descriptions
Smarts 10.1.X
Parameter |
Description |
---|---|
--force
|
Overwrites an existing service with the same name. This parameter is used to update or modify the parameters of an existing service.
|
--name=<service_name>
|
Display name of the service.
|
--startmode=<mode>
|
Service start policy. The value for <mode> is one of the following:
The default is runonce.
|
--description="<DESC>"
|
Short description of the service. Enclose the description with double quotation marks.
On UNIX platforms, the description information is printed with the name of the service when the sm_service show action is invoked.
|
--env=<NAME>=VALUE>
|
Specifies environment variables.
A <NAME>=<VALUE> pair that will be placed in the process environment of the launched service. As many --env pairs as necessary can be specified.
The syntax <NAME>= (with no specified value) has the effect of unsetting <NAME> in the environment of the launched program.
The --env arguments are applied left to right as they appear on the command line, and this ordering is preserved in the database.
|
Parameter |
Description |
---|---|
--help
|
Print help and exit.
|
--version
|
Print program version and exit.
|
--daemon
|
Run process as a daemon.
|
--logname=<name>
|
Use <name> to identify sender in the system log.
Default: The program's name. |
--loglevel=<level>
|
Minimum system logging level.
Default: Error. |
--errlevel=<level>
|
Minimum error printing level.
Default: Warning. |
--tracelevel=<level>
|
Minimum stack trace level.
<level>: One of None, Emergency, Alert, Critical, Error, Warning, Notice, Informational, or Debug. Fatal is a synonym for Critical. Default: Fatal. |
--facility=<facility>
|
Non-Windows only. A case-insensitive string that identifies which facility to use for syslog messages.
<facility>: One of Cron, Daemon, Kern, Local0-Local7, Lpr, Mail, News, Uucp, User. Default: Daemon. |
--output[=<file>]
|
Redirect server output (stdout and stderr).
The file name is <file>, or the --logname value if <file> is omitted. Log files are always placed in $SM_LOGFILES or $SM_WRITEABLE/logs. |
--accept=<host-list>
|
Accept connections only from hosts on <host-list>, a comma-separated list of hostnames and IP addresses.
--accept=any allows any host to connect.
Default: --accept=any. |
--useif=<ip-address>
|
Use this IP address as the source/destination interface address for SNMP and ICMP packets.
|
--privopen=<priv-list>
|
List of sockets that require privilege state before changed process to run in the account specified by --run-as-user. The <priv-list> is a comma separated list of type[:family]:protocol[,#count].
Type is TCP, UDP or IP. Family is v6 or v4. When the type is IP, Protocol is the protocol number (Eg: 1 for ICMP, 58 for ICMPv6). When the type isTCP/UDP, Protocol is the port number. |
--run-as-user=username
|
Run as this user after opening privilege sockets.
|