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

If specifying start and stop command, it should be used for restart.

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Night's Watch

      Description

      I have the following code:
      service { 'gemirro':
      ensure => running,
      start => "${::gemirro::gemirro_bin} server --start --config ${::gemirro::config_file}",
      stop => "${::gemirro::gemirro_bin} server --stop --config ${::gemirro::config_file}",
      status => "${::gemirro::gemirro_bin} server --status --config ${::gemirro::config_file}",
      hasrestart => false,
      hasstatus => true,
      }

      The expectation is that when this service gets an refresh event and needs to restart, that it will call my custom stop and start command. This is not what happens and it tries to call init/upstart commands which then fails for obvious reasons because it does not exist. So the sweet and the short is that it should use custom stop start commands if provided. A work around would be to specify a restart command but that seems unnecessary.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            ggeldenhuis-old Gerhardus Geldenhuis
            QA Contact:
            Eric Thompson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support