mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-04 11:43:50 +00:00
30 lines
588 B
Plaintext
30 lines
588 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, sunos]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# svcadm
|
|
|
|
> Manipulate service instances.
|
|
> More information: <https://www.unix.com/man-page/linux/1m/svcadm>.
|
|
|
|
- Enable a service in the service database:
|
|
|
|
`svcadm enable {{service_name}}`
|
|
|
|
- Disable service:
|
|
|
|
`svcadm disable {{service_name}}`
|
|
|
|
- Restart a running service:
|
|
|
|
`svcadm restart {{service_name}}`
|
|
|
|
- Command service to re-read configuration files:
|
|
|
|
`svcadm refresh {{service_name}}`
|
|
|
|
- Clear a service from maintenance state and command it to start:
|
|
|
|
`svcadm clear {{service_name}}`
|