My agent machine does not have a writable directory called /var/run. How can I get my rhq-agent-wrapper.sh script to successfully write out its pidfile?
Set the environment variable RHQ_AGENT_PIDFILE_DIR to a full path of the directory where you want the pidfile to get stored. When you run the script, that variable’s value will override the default location. If you have an older script (2.1 or older), directly edit rhq-agent-wrapper.sh and change /var/run to the directory that you want.
Related Questions
- My agent machine does not have a writable directory called /var/run. How can I get my rhq-agent-wrapper.sh script to successfully write out its pidfile?
- Does The Script Archeologist answer questions about how to write screenplays, proper formatting, how to sell a screenplay, how to find an agent, etc?
- My server machine does not have a writable directory called /var/run. How can I get my rhq-server.sh script to successfully write out its pidfile?