Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-4920

Can Service disable before stopping?

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.6.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      CentOS 7.x, Epel Puppet 3.6.2

    • Template:

      Description

      I'm attempting to have Puppet disable and stop itself after creating a cron job to run the agent. This mostly works, but has an annoying glitch.

      service { 'puppet':
        ensure => stopped,
        enable => false,
        require => Cron['puppet']
      }
      

      The problem is this will stop Puppet before disabling the service. Is it possible to have Service execute the disable before the stop?

        Attachments

          Activity

            People

            • Assignee:
              kylo Kylo Ginsberg
              Reporter:
              internetstaff C Lang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support