HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

svccfg — Import, export, and modify service configurations. More information: <https://www.unix.com/man-page/

Submitted by: @import:tldr-pages··
0
Viewed 0 times
importcommandandmodifysvccfgcliexportservice
linux

Problem

How to use the svccfg command: Import, export, and modify service configurations. More information: <https://www.unix.com/man-page/linux/1m/svccfg>.

Solution

svccfg — Import, export, and modify service configurations. More information: <https://www.unix.com/man-page/linux/1m/svccfg>.

Validate configuration file:
svccfg validate {{path/to/smf_file.xml}}


Export service configurations to file:
svccfg export {{servicename}} > {{path/to/smf_file.xml}}


Import/update service configurations from file:
svccfg import {{path/to/smf_file.xml}}

Code Snippets

Validate configuration file

svccfg validate {{path/to/smf_file.xml}}

Export service configurations to file

svccfg export {{servicename}} > {{path/to/smf_file.xml}}

Import/update service configurations from file

svccfg import {{path/to/smf_file.xml}}

Context

tldr-pages: sunos/svccfg

Revisions (0)

No revisions yet.