greatcare / pm2-zabbix

A Node.js PM2 monitoring tool for Zabbix.
MIT License
87 stars 60 forks source link

Installation failed on centos 6.8 #13

Open penyzh opened 7 years ago

penyzh commented 7 years ago

Feedback a problem

Installation failed on centos 6.8 when start pm2-zabbix service: /etc/init.d/pm2-zabbix: line 46: log_daemon_msg: command not found /etc/init.d/pm2-zabbix: line 47: start-stop-daemon: command not found /etc/init.d/pm2-zabbix: line 49: log_end_msg: command not found

but Successful installation on Ubuntu16.04

thanks a lot !

rkaw92 commented 7 years ago

Apparently, CentOS has no start-stop-daemon nor its related functions that one would ordinarily find on Debian. Looks like a different init script is needed for RHEL-based systems (at least before RHEL7 with systemd).

We're gladly accepting such fixes via pull requests. I'm a bit swamped with work at the moment, so will not be able to write and test the distro-specific script next week. If you do arrive at one that works, however, I'll be sure to include it in the repo.

sqwit commented 7 years ago

Hi There, I'm having the same issue to get the service working on Centos 6. Are you already working on something?

rkaw92 commented 7 years ago

Hi, not at the moment. Your best bet right now is trying either writing a sysvinit script using the daemon shell script function that is apparently available as standard on CentOS, or defining an upstart job (not sure if CentOS 6 ships with upstart, though).