Disabling services

General support questions
Post Reply
upnort
Posts: 62
Joined: 2014/10/21 20:37:57

Disabling services

Post by upnort » 2018/04/26 15:52:35

Are there normal or obtuse ways to disable a systemd service script other than 'systemctl disable'?

I have a server running Nagios. On reboot I noticed Nagios not running. I discovered the nagios.service script was disabled. This has happened twice, the other time about 4 months ago.

The bash history shows no 'systemctl disable nagios' command used or any 'unlink' command. I do not notice anything awry in the logs.

Thanks. :)

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Disabling services

Post by TrevorH » 2018/04/26 16:32:34

Updated the package since you enabled the service? Perhaps there is a bug in the package post-script - try rpm -q --scripts yournagiospackage and read the script to see if it unconditionally disables the service.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

upnort
Posts: 62
Joined: 2014/10/21 20:37:57

Re: Disabling services

Post by upnort » 2018/04/26 20:17:49

Wow! Thanks!

Nagios updates:

Fri Apr 13 12:24:05 2018
Thu Nov 16 16:51:01 2017

Nagios plugins:

Mon Apr 23 11:07:30 2018

I did not find any explicit disabling in the scripts, but the dates are too much of a coincidence.

Post Reply