Bug 26970 - Monit: update init script to systemd service
Summary: Monit: update init script to systemd service
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Low enhancement
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2020-07-17 18:36 CEST by Marc Krämer
Modified: 2020-08-01 01:27 CEST (History)
4 users (show)

See Also:
Source RPM: monit-5.25.3-1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Marc Krämer 2020-07-17 18:36:47 CEST
monit already ships with an systemd-service, why not use it?!
Marc Krämer 2020-07-17 18:36:53 CEST

Priority: Normal => Low

Comment 1 David GEIGER 2020-07-18 08:15:43 CEST
Assigning to QA,


Advisory:
========================

Our current monit package still uses an old/deprecated init script service while a systemd service is provided upstream, so this update switches from init script to systemd service support.

========================

Packages in 7/core/updates_testing:
========================
monit-5.25.3-1.1.mga7.i586.rpm
monit-5.25.3-1.1.mga7.x86_64.rpm

Source RPM: 
========================
monit-5.25.3-1.1.mga7.src.rpm

Assignee: geiger.david68210 => qa-bugs
Version: Cauldron => 7

Comment 2 Len Lawrence 2020-07-27 13:38:10 CEST
mga7, x86_64

Checked  the operation of monit before updating.  Looked fine.

Updated monit and ran a few simple commands.  monit can do very much more than this though.
$ rpm -q monit
monit-5.25.3-1.1.mga7
$ monit -t
Control file syntax OK
$ monit -d 5
Monit daemon with PID 6959 awakened
$ monit --id
Monit ID: b948f8eb1ed0ca1a64c4cdea0d3b7cb1
$ monit summary
Monit 5.25.3 uptime: 14m
┌─────────────────────────────────┬────────────────────────────┬───────────────┐
│ Service Name                    │ Status                     │ Type          │
├─────────────────────────────────┼────────────────────────────┼───────────────┤
│ difda                           │ OK                         │ System        │
├─────────────────────────────────┼────────────────────────────┼───────────────┤
│ bin                             │ OK                         │ Directory     │
├─────────────────────────────────┼────────────────────────────┼───────────────┤
│ canopus                         │ OK                         │ Remote Host   │
└─────────────────────────────────┴────────────────────────────┴───────────────┘
$ monit procmatch ruby
List of processes matching pattern "ruby":
┌───┬───────┬───────┬──────────────────────────────────────────────────────────┐
│   │ PID   │ PPID  │ Command                                                  │
├───┼───────┼───────┼──────────────────────────────────────────────────────────┤
│   │ 10547 │ 18642 │ ruby /home/lcl/bin/inventory                             │
├───┼───────┼───────┼──────────────────────────────────────────────────────────┤
│   │  6333 │ 18642 │ /usr/bin/ruby /home/lcl/bin/bugcentre                    │
├───┼───────┼───────┼──────────────────────────────────────────────────────────┤
│   │  8515 │ 18642 │ /usr/bin/ruby -W0 /home/lcl/bin/calco                    │
├───┼───────┼───────┼──────────────────────────────────────────────────────────┤
│ * │  9015 │ 18642 │ ruby /home/lcl/bin/wv 3600                               │
└───┴───────┴───────┴──────────────────────────────────────────────────────────┘
Total matches: 4
$ monit procmatch acpid
List of processes matching pattern "acpid":
┌───┬───────┬───────┬──────────────────────────────────────────────────────────┐
│   │ PID   │ PPID  │ Command                                                  │
├───┼───────┼───────┼──────────────────────────────────────────────────────────┤
│ * │  3270 │     1 │ /usr/sbin/acpid                                          │
└───┴───────┴───────┴──────────────────────────────────────────────────────────┘
Total matches: 1
$ monit -H notebook
SHA1(notebook) = a64f0e2789f1f65905a6ac7acdb198eb974c9b78
MD5(notebook)  = 0c513c00334ebb91a16e5a94e26a8a34
$ monit procmatch nfs
List of processes matching pattern "nfs":
┌───┬───────┬───────┬──────────────────────────────────────────────────────────┐
│   │ PID   │ PPID  │ Command                                                  │
├───┼───────┼───────┼──────────────────────────────────────────────────────────┤
│ * │  7787 │     2 │ nfsd                                                     │
....
Total matches: 8
$ monit status
Monit 5.25.3 uptime: 42m

Directory 'bin'
  status                       OK
  monitoring status            Monitored
  monitoring mode              active
  on reboot                    start
  permission                   755
  uid                          0
  gid                          0
  access timestamp             Mon, 24 Sep 2018 06:25:53
  change timestamp             Mon, 27 Jul 2020 11:56:49
  modify timestamp             Mon, 27 Jul 2020 11:56:49
  data collected               Mon, 27 Jul 2020 12:29:09
..............

Unless anybody objects, this can go out.

CC: (none) => tarazed25

Len Lawrence 2020-07-28 16:47:11 CEST

Whiteboard: (none) => MGA7-64-OK

Comment 3 Thomas Andrews 2020-07-29 02:50:37 CEST
Validating. Advisory in Comment 1.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Dave Hodgins 2020-07-31 12:30:22 CEST

CC: (none) => davidwhodgins
Keywords: (none) => advisory

Comment 4 Mageia Robot 2020-08-01 01:27:34 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2020-0164.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.