rc - FreeBSD rc service
Checks a FreeBSD-style service is running, by running its rc script (in /usr/local/etc/rc.d) with the status command.
Tip
You may want the unix_service monitor for a more generic check.
- service
- Type:
string
- Required:
true
the name of the service to check. Should be the name of the rc.d script in
/usr/local/etc/rc.d
. Any trailing.sh
is optional and added if needed.
- path
- Type:
string
- Required:
false
- Default:
/usr/local/etc/rc.d
the path of the folder containing the rc script.
- return_code
- Type:
integer
- Required:
false
- Default:
0
the required return code from the script