monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot add M/Monit as daemon


From: address@hidden
Subject: Re: Cannot add M/Monit as daemon
Date: Wed, 28 Jun 2017 11:46:02 +0200

Hello Sorin,

you can find recipes for automatic M/Monit startup here: https://mmonit.com/wiki/MMonit/Setup#autolaunch.

The easiest way is to register M/Monit as a service in Monit - it will also make M/Monit process visible in its own Reports.

Best regards,
Martin


On 27 Jun 2017, at 10:04, Sorin Srbu <address@hidden> wrote:

Hello all,

I'm trying to get M/Monit to automatically start at boot on a CentOS
6.9-server.
Assuming this is easiest done by demonizing M/Monit I tried and got the
below messages.

address@hidden /etc/init.d/ [0]# chkconfig mmonit_init on
service mmonit_init does not support chkconfig

address@hidden /etc/init.d/ [0]# service mmonit_init restart
Restarting mmonit: mmonitcat: /var/run/mmonit.pid: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or
kill -l [sigspec]

not running.
address@hidden /etc/init.d/ [0]#

address@hidden /var/run/ [0]# whereis mmonit.pid
mmonit: /usr/local/mmonit
address@hidden /var/run/ [0]#

address@hidden /usr/local/mmonit/ [0]# ls -al
total 16
drwxr-xr-x   4 root root 4096 Apr 19 07:31 ./
drwxr-xr-x. 13 root root 4096 Apr 19 07:29 ../
drwxr-xr-x  10 root root 4096 Apr 19 07:29 mmonit-3.7.0/
drwxr-xr-x  10 root root 4096 Apr 18 23:07 mmonit-3.7.1/
address@hidden /usr/local/mmonit/ [0]#

I don't get this...

Now, the weird thing is that M/Monit _is_ running.
I just can't control it via the OS's own daemon system.

Is there any recommended practice to have M/Monit autostart on boot?

Thanks.

--
BW,
Sorin
-----------------------------------------------------------
# Sorin Srbu, Sysadmin
# Uppsala University
# Dept of Medicinal Chemistry
# Div of Org Pharm Chem
# Box 574
# SE-75123 Uppsala
# Sweden
#
# Phone: +46 (0)18-4714482
# Visit: BMC, Husargatan 3, D5:512b
# Web: http://www.orgfarm.uu.se
-----------------------------------------------------------
# O<  ASCII ribbon campaign - Against html E-mail
# http://tinyurl.com/ascii-ribbon-campaign
#
# This message was not sent from an iProduct!
#
# Please consider the environment before printing this email.
# Join the campaign at http://thinkBeforePrinting.org
#
# MotD follows:
People are always available for work in the past tense.

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general


reply via email to

[Prev in Thread] Current Thread [Next in Thread]