Project

General

Profile

Actions

Bug #4155

closed

Commands to check and restart cron daemon on Fedora are not correct

Added by Christophe Nowicki about 11 years ago. Updated over 10 years ago.

Status:
Released
Priority:
2
Assignee:
Matthieu CERDA
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Hi,

Fedora is using SystemD and other GNU/Linux distributions are adopting this init system.
Could you fix the check_cron_daemon in :

https://github.com/Normation/rudder-techniques/blob/master/initial-promises/node-server/promises.cf

Current version is :

  vars:

    redhat::
      "cron_bin" string => "crond$";
      "cron_restartcmd" string => "/etc/init.d/crond restart";

    ubuntu::
      "cron_bin" string => "cron$";
      "cron_restartcmd" string => "/etc/init.d/cron restart";

    !(redhat|ubuntu)::
      "cron_bin" string => "/usr/sbin/cron$";
      "cron_restartcmd" string => "/etc/init.d/cron restart";

Could you add fedora and use service instead of '/etc/init.d/*'

  vars:

    redhat::
      "cron_bin" string => "crond$";
      "cron_restartcmd" string => "/etc/init.d/crond restart";

    fedora::
      "cron_bin" string => "crond$";
      "cron_restartcmd" string => "/bin/systemctl restart crond.service"";

    ubuntu::
      "cron_bin" string => "cron$";
      "cron_restartcmd" string => "/etc/init.d/cron restart";

    !(redhat|ubuntu|fedora)::
      "cron_bin" string => "/usr/sbin/cron$";
      "cron_restartcmd" string => "service cron restart";

Best Regards,


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #6566: promises.cf's "bundle agent check_cron_daemon" is not systemd awareReleasedMatthieu CERDA2015-05-06Actions
Actions

Also available in: Atom PDF