Formatted all pages according to guidelines.
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
# prctl
|
||||
|
||||
> Get or set the resource controls of running processes,
|
||||
> tasks, and projects
|
||||
> Get or set the resource controls of running processes,.
|
||||
> Tasks, and projects.
|
||||
|
||||
- examine process limits and permissions
|
||||
- Examine process limits and permissions:
|
||||
|
||||
`prctl {{PID}}`
|
||||
|
||||
- examine process limits and permissions in machine parseable format
|
||||
- Examine process limits and permissions in machine parseable format:
|
||||
|
||||
`prctl -P {{PID}}`
|
||||
|
||||
- Get specific limit for a running process
|
||||
- Get specific limit for a running process:
|
||||
|
||||
`prctl -n process.max-file-descriptor {{PID}}`
|
||||
|
@@ -1,23 +1,23 @@
|
||||
# prstat
|
||||
|
||||
> Report active process statistics
|
||||
> Report active process statistics.
|
||||
|
||||
- examine all processes and reports statistics sorted by CPU usage
|
||||
- Examine all processes and reports statistics sorted by CPU usage:
|
||||
|
||||
`prstat`
|
||||
|
||||
- examine all processes and reports statistics sorted by memory usage
|
||||
- Examine all processes and reports statistics sorted by memory usage:
|
||||
|
||||
`prstat -s rss`
|
||||
|
||||
- report total usage summary for each user
|
||||
- Report total usage summary for each user:
|
||||
|
||||
`prstat -t`
|
||||
|
||||
- report microstate process accounting information
|
||||
- Report microstate process accounting information:
|
||||
|
||||
`prstat -m`
|
||||
|
||||
- Print out a list of top 5 cpu using processes every second.
|
||||
- Print out a list of top 5 cpu using processes every second:
|
||||
|
||||
`prstat -c -n 5 -s cpu 1`
|
||||
|
@@ -1,23 +1,23 @@
|
||||
# svcadm
|
||||
|
||||
> Manipulate service instances
|
||||
> Manipulate service instances.
|
||||
|
||||
- enable a service in the service database
|
||||
- Enable a service in the service database:
|
||||
|
||||
`svcadm enable {{service_name}}`
|
||||
|
||||
- disable service
|
||||
- Disable service:
|
||||
|
||||
`svcadm disable {{service_name}}`
|
||||
|
||||
- restart a running service
|
||||
- Restart a running service:
|
||||
|
||||
`svcadm restart {{service_name}}`
|
||||
|
||||
- command service to re-read configuration files
|
||||
- Command service to re-read configuration files:
|
||||
|
||||
`svcadm refresh {{service_name}}`
|
||||
|
||||
- clear a service from maintenance state and command it to start
|
||||
- Clear a service from maintenance state and command it to start:
|
||||
|
||||
`svcadm clear {{service_name}}`
|
||||
|
@@ -1,15 +1,15 @@
|
||||
# svccfg
|
||||
|
||||
> Import, export, and modify service configurations
|
||||
> Import, export, and modify service configurations.
|
||||
|
||||
- validate configuration file
|
||||
- Validate configuration file:
|
||||
|
||||
`svccfg validate {{smf.xml}}`
|
||||
|
||||
- export service configurations to file
|
||||
- Export service configurations to file:
|
||||
|
||||
`svccfg export {{servicename}} > {{smf.xml}}`
|
||||
|
||||
- import/update service configurations from file.
|
||||
- Import/update service configurations from file:
|
||||
|
||||
`svccfg import {{smf.xml}}`
|
||||
|
@@ -1,23 +1,23 @@
|
||||
# svcs
|
||||
|
||||
> List information about running services
|
||||
> List information about running services.
|
||||
|
||||
- list all running services
|
||||
- List all running services:
|
||||
|
||||
`svcs`
|
||||
|
||||
- list services that are not running
|
||||
- List services that are not running:
|
||||
|
||||
`svcs -vx`
|
||||
|
||||
- list information about a service
|
||||
- List information about a service:
|
||||
|
||||
`svcs apache`
|
||||
|
||||
- show location of service log file
|
||||
- Show location of service log file:
|
||||
|
||||
`svcs -L apache`
|
||||
|
||||
- display end of a service log file
|
||||
- Display end of a service log file:
|
||||
|
||||
`tail $(svcs -L apache)`
|
||||
|
Reference in New Issue
Block a user