Bug #8701
closed
EL7 foreman-proxy.service typo in unit file
Added by Florian Koch about 10 years ago.
Updated almost 10 years ago.
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
- Project changed from Katello to Foreman
- Category deleted (
Installer)
- 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)
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.....
ok, so then this can be closed, its not an forman bug, thx for the informations
- Status changed from Need more information to Rejected
Also available in: Atom
PDF