RC-SERVICE

Section: Maintenance Commands (8)
Updated: SMM
Page Index

BSD mandoc
OpenRC  

NAME

rc-service - locate and run an OpenRC service with the given arguments  

SYNOPSIS

[-c , -ifcrashed ] service cmd [... ]
-d , -debug service cmd [... ]
-D , -nodeps service cmd [... ]
[-i , -ifexists ] service cmd [... ]
[-I , -ifinactive ] service cmd [... ]
[-N , -ifnotstarted ] service cmd [... ]
[-s , -ifstarted ] service cmd [... ]
[-S , -ifstopped ] service cmd [... ]
-e , -exists service
-Z , -dry-run service cmd [... ]
-l , -list
-r , -resolve service  

DESCRIPTION

Service scripts could be in different places on different systems. locates the specified service and runs it with the given arguments. If -i , -ifexists is given then returns 0 even if the service does not exist. If -I , -ifinactive or -N , -ifnotstarted is given then returns 0 if the service exists but is in the wrong state.

If given the -l , -list argument then will list all available services.

-e , -exists return 0 if it can find service otherwise -1. -r , -resolve does the same and also prints the full path of the service to stdout.

-d , -debug sets -x when running the service script(s).

-D , -nodeps ignores dependencies when running the service.

-Z , -dry-run displays commands rather than executing them.  

SEE ALSO

openrc(8), stdout(3)  

AUTHORS

An Roy Marples <roy@marples.name>


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
AUTHORS
LinuxReviews : manual page archive : man8