FS#32518 - [monit] Systemd Unit File

Attached to Project: Community Packages
Opened by Paul Gideon Dann (giddie) - Wednesday, 07 November 2012, 12:41 GMT
Last edited by Balló György (City-busz) - Wednesday, 11 September 2013, 17:56 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

A couple of issues with the unit file:

1) Monit will not be restarted if it crashes. Can you add Restart=always to the unit?
2) Because the unit is set to start after network.target, it's possible that some services that Monit is intended to monitor have not started when Monit is started. Can this be changed to default.target, so that Monit is only started after the default target is reached? (Is this a sensible way of dealing with this?)

Additional info:
* monit 5.5-2
This task depends upon

Closed by  Balló György (City-busz)
Wednesday, 11 September 2013, 17:56 GMT
Reason for closing:  Won't implement
Additional comments about closing:  ask upstream
Comment by Paul Gideon Dann (giddie) - Wednesday, 07 November 2012, 12:43 GMT
If you add Restart=always, you might also want to add RestartSec=60, since monit will usually send out e-mails as it starts and stops, and we want to avoid DoSing the administrator if there's an ongoing problem.
Comment by Paul Gideon Dann (giddie) - Thursday, 06 December 2012, 15:59 GMT
OK, this actually needs to be After=multi-user.target. Otherwise, systemd complains about an ordering loop (because monit has WantedBy=multi-user.target).
Comment by Balló György (City-busz) - Wednesday, 11 September 2013, 17:56 GMT
The same systemd unit file can be found in the upstream released tarball inside the contrib/ subdirectory. So if you want some changes, ask upstream developers first: https://savannah.nongnu.org/bugs/?func=additem&group=monit

But anyway, you can customize the unit files on your system as described here:
https://wiki.archlinux.org/index.php/Systemd#Editing_provided_unit_files

Loading...