Project

General

Profile

Actions

Bug #9248

closed

smart-proxy does not create a pid file

Added by Corey Osman over 9 years ago. Updated about 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Core
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by Corey Osman over 9 years ago

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

Actions #2

Updated by Dominic Cleal over 9 years ago

  • Category set to Core
Actions #3

Updated by Corey Osman over 9 years ago

  • 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.

Actions #4

Updated by Lukas Zapletal over 9 years ago

If using RHEL or clones, check SELinux for denials. Is this RHEL7 or RHEL6?

Actions #5

Updated by Anonymous over 8 years ago

  • 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.

Actions #6

Updated by Dominic Cleal over 8 years ago

  • Status changed from Closed to Rejected
Actions

Also available in: Atom PDF