Bug #9248
closed
smart-proxy does not create a pid file
Added by Corey Osman almost 10 years ago.
Updated over 6 years ago.
Description
The smart proxy service when installed via rpm does not create a pid file when started. This is causing restarts to fail and the user must kill the process manually to load any new settings.
Usually the init file creates this pid file but I think its been moved to the proxy itself to create the pid file.
Upon further inspection, if I manual set the daemon_pid in the settings file everything works as expected. So it looks like its not loading the default value correctly which thus creates an issue when trying to create a pid file.
To work around this issue just uncomment the daemon_pid
# by default smart_proxy runs in the foreground. To enable running as a daemon, uncomment 'daemon' setting
:daemon: true
# Only used when 'daemon' is set to true.
# Uncomment and modify if you want to change the default pid file '/var/run/foreman-proxy/foreman-proxy.pid'
:daemon_pid: /var/run/foreman-proxy/foreman-proxy.pid
- Priority changed from High to Normal
I wrote a few tests to try and reproduce this issue via code. However, I was unable to reproduce this directly with code. I will dig a little deeper with pry and see if I can better reproduce the issue.
If using RHEL or clones, check SELinux for denials. Is this RHEL7 or RHEL6?
- Status changed from New to Closed
This has been inactive for a year with no other users raising the issue. I'm going to close this, pls. reopen if you are still seeing it.
- Status changed from Closed to Rejected
Also available in: Atom
PDF