monit-general
[Top][All Lists]
Advanced

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

Why are the services not started automatically on reboot?


From: Sonderegger, Markus
Subject: Why are the services not started automatically on reboot?
Date: Sun, 11 Aug 2019 11:27:30 +0000

The monit manual says in “SYSTEM REBOOT AND SERVICE STARTUP”:

“In start mode, Monit will always start the service automatically on reboot, even if it was stopped before restart. This is the default mode and used if onreboot is not specified.”

 

I would expect that monit will call the START method when the system comes up but I experimented at least 2 days with PROCESS and PROGRAM with various combinations and did not manage to get the services started properly.

Do I misunderstand the saying of the manual that the services are started automatically?

 

Here some thoughts:

The manual says for a PROCESS service:

“If the pid-file does not exist or does not contain the PID number of a running process, Monit will call the entry's start method if defined.”

This no longer works when I add an EXEC action.

 

The manual also says for the validate argument:

“Check all services listed in the control file. This action is also the default behaviour when Monit runs in daemon mode.”

 

Our SysAdmin starts monit with the following systemd entry:

[Service]

Type=simple

PrivateTmp=true

UMask=0027

ExecStart=/opt/monit/bin/monit -I -vv

ExecStop=/opt/monit/bin/monit quit

ExecReload=/opt/monit/bin/monit reload

Restart=on-abnormal

StandardOutput=null

TimeoutStopSec=300

LimitCORE=infinity

LimitNPROC=16384

LimitNOFILE=65536

KillMode=none

 

Would we have to define ExecStart=/opt/monit/bin/monit -I –vv start all?

Doing so could we suppress starting all services by setting ONREBOOT NOSTART when we need to apply a patch before starting the services?

 

Many thanks for your help.

Regards

Markus

 



*****JuliusBaer Disclaimer***** This e-mail is for the intended recipient only and may contain confidential or privileged information. If you have received this e-mail by mistake, please contact us immediately and completely delete it (and any attachments) and do not forward it or inform any other person of its contents. If you send us messages by e-mail, we take this as your authorisation to correspond with you by e-mail, however, we reserve the right not to execute orders and instructions transmitted by e-mail at any time and without further explanation. If you do not wish to receive any further e-mail correspondence please let us know. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, amended, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Neither the Julius Baer Group nor the sender accept liability for any errors or omissions in the content of this message which arise as a result of its e-mail transmission. Please note that all e-mail communications to and from the Julius Baer Group may be monitored. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

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