Project

General

Profile

Actions

Bug #6940

closed

The service_check_started_at_boot generic method fails if run on Debian 8 and a legacy sysv init script is present

Added by Matthieu CERDA over 9 years ago. Updated over 2 years ago.

Status:
Released
Priority:
1 (highest)
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

We try to check if apache2 and postgresql are set to run at boot on Rudder server installations.

Problem: On Debian 8, systemctl is-enabled fails if the service still uses SysV style scripts (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760616)

We should correct the generic method not to use systemctl if:
  • We run on Debian 8
  • A init script for the service can be found

Note: RHEL7 seems immune to this, as it asks chkconfig about the service status if needed

Actions

Also available in: Atom PDF