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: Starting SYSV: Hue web server... lis 26 20:25:20 node0 su: (to hue) root on none lis 26 20:25:31 node0 hue: Starting hue: [ OK ] lis 26 20:25:31 node0 systemd: PID file /usr/lib/hue/pids/supervisor.pid not readable (yet?) after start. lis 26 20:25:31 node0 systemd: Failed to start SYSV: Hue web server. lis 26 20:25:31 node0 systemd: Unit hue.service entered failed state.
This is false error, Hue has actually correctly started and created pid file under different directory (
# 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
/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
/var and cannot find any piece of configuration that told systemd to look for pidfile in that specific directory. Any hint?