I have installed Hue in CentOS 7 from Cloudera CDH5 repository.
Upon starting it reports an error:
# systemctl status hue
hue.service - SYSV: Hue web server
Loaded: loaded (/etc/rc.d/init.d/hue)
Active: failed (Result: resources) since sob 2016-11-26 20:25:31 UTC; 6min ago
Process: 3448 ExecStart=/etc/rc.d/init.d/hue start (code=exited, status=0/SUCCESS)
lis 26 20:25:20 node0 systemd[1]: Starting SYSV: Hue web server...
lis 26 20:25:20 node0 su[3457]: (to hue) root on none
lis 26 20:25:31 node0 hue[3448]: Starting hue: [ OK ]
lis 26 20:25:31 node0 systemd[1]: PID file /usr/lib/hue/pids/supervisor.pid not readable (yet?) after start.
lis 26 20:25:31 node0 systemd[1]: Failed to start SYSV: Hue web server.
lis 26 20:25:31 node0 systemd[1]: Unit hue.service entered failed state.
This is false error, Hue has actually correctly started and created pid file under different directory (/var/run/hue/supervisor.pid
).
# ps -ef | grep hue
hue 3877 1 0 20:25 ? 00:00:00 python2.7 /usr/lib/hue/build/env/bin/supervisor -p /var/run/hue/supervisor.pid -l /var/log/hue -d
hue 3949 3877 0 20:25 ? 00:00:03 python2.7 /usr/lib/hue/build/env/bin/hue runcherrypyserver
In /etc/init.d/hue
pid directory is correctly set via PIDFILE variable... although I noticed also directory reported by systemctl as a comment:
# pidfile: /usr/lib/hue/pids/supervisor.pid
[...]
PIDFILE=/var/run/hue/supervisor.pid
Now I looked through all of /etc
, /usr
and /var
and cannot find any piece of configuration that told systemd to look for pidfile in that specific directory. Any hint?