Project

General

Profile

Actions

Bug #8701

closed

EL7 foreman-proxy.service typo in unit file

Added by Florian Koch over 9 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
High
Assignee:
-
Category:
Packaging
Target version:
-
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hi,

i version 2.0.0 there is a typo in the Foreman-Proxy unit is missing /var in the PidFile Path, the installer fail to start the service

original unit

[Unit]
Description=Foreman Proxy
Wants=basic.target
After=basic.target network.target

[Service]
Type=forking
User=foreman-proxy
ExecStart=/usr/share/foreman-proxy/bin/smart-proxy
PIDFile=/run/foreman-proxy/foreman-proxy.pid

[Install]

correct unit

[Unit]
Description=Foreman Proxy
Wants=basic.target
After=basic.target network.target

[Service]
Type=forking
User=foreman-proxy
ExecStart=/usr/share/foreman-proxy/bin/smart-proxy
PIDFile=/var/run/foreman-proxy/foreman-proxy.pid
Actions #1

Updated by Eric Helms over 9 years ago

  • Project changed from Katello to Foreman
  • Category deleted (Installer)
Actions #2

Updated by Dominic Cleal over 9 years ago

  • Project changed from Foreman to Smart Proxy
  • Category set to Packaging
  • Status changed from New to Need more information

Usually on systemd OSes (i.e. EL7 and F19, which this unit file was written for), /var/run is a symlink to /run. Can you explain how these directories are configured for you?

# ls -ld /var/run /run
drwxr-xr-x. 31 root root 960 Jan  5 09:02 /run
lrwxrwxrwx.  1 root root   6 Aug 27 00:05 /var/run -> ../run
# cat /etc/redhat-release 
CentOS Linux release 7.0.1406 (Core) 
Actions #3

Updated by Florian Koch over 9 years ago

you are right, on system installed from the dvd it is a symlink. I use a container with systemd-nspawn and have bootstrapped centos via yum, whyever i this case there is no symlink, both are dirs.....

Actions #4

Updated by Dominic Cleal over 9 years ago

I think that's an EL7 bug, which is being fixed: https://bugzilla.redhat.com/show_bug.cgi?id=1130939

It was fixed in Fedora 19 too via https://bugzilla.redhat.com/show_bug.cgi?id=919374 and https://bugzilla.redhat.com/show_bug.cgi?id=975864.

(The filesystem RPM was changed to deploy them properly as symlinks, but when using yum to build the chroot, it's erroneously creating /var/run as a directory instead of a symlink.)

Actions #5

Updated by Florian Koch over 9 years ago

ok, so then this can be closed, its not an forman bug, thx for the informations

Actions #6

Updated by Dominic Cleal over 9 years ago

  • Status changed from Need more information to Rejected
Actions

Also available in: Atom PDF