rcstaggerd [-c config_file] [-f] [-p pid_file] [-u user] [-g group]
rcstaggerd -h
rcstaggerd -v
rcstaggerd is a daemon that runs in userspace to monitor and control other services. It will send notifications to remote peers whenever a service changes its state, and it will start and stop services as appropriate in response to peer notifications of their local service states. In other words, if you have a service that you don't want to start until a peer provides an "sql" service, then this is for you.
rcstaggerd uses openssl for authentication - nobody is going to control your services unless they have the proper keys to do so.
Argument Flag | Long Option | Description |
---|---|---|
-c | --config | Path to the configuration file to use |
-f | --foreground | Run rcstaggerd in the foreground |
-p | --pid | Path to the PID file to use |
-u | --user | User to drop privileges to |
-g | --group | Group to drop privileges to |
-h | --help | Print help and exit |
-v | --version | Print version and exit |
The below command runs rcstaggerd as a daemon with current user and group privileges using the config file compiled in as a default (defaults to /etc/rcstaggerd.conf), and storing its PID in the compiled in default location (defaults to /var/run/rcstaggerd.pid):
rcstaggerd
The below command runs rcstaggerd in the foreground as user sysadmin using a config file located in /etc/sysadmin/rcstaggerd.conf, and storing its pid in /tmp/rcstaggerd.pid:
rcstaggerd -fc /etc/sysadmin/rcstaggerd.conf -p /tmp/rcstaggerd.pid