FAQ
i do like this:
service{
"lighttpd":
hasrestart => true,
hasstatus => true,
restart => "/sbin/service lighttpd restart",
}

But it dose not work

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Ellison Marks at Mar 15, 2013 at 4:46 pm
    You don't need the restart command there. When you say "hasrestart =>
    true", you're telling puppet that the init script has a restart command, so
    it's going to call "/sbin/service lighttpd restart" anyway. If you say
    "hasrestart => false", the default is to do a "service lighttpd stop &&
    service lighttpd start". The restart parameter is for specifying the
    command to restart the service if it isn't handled by the init script and
    you want something more complicated than the default.
    On Friday, March 15, 2013 12:06:02 AM UTC-7, 陈士超 wrote:

    i do like this:
    service{
    "lighttpd":
    hasrestart => true,
    hasstatus => true,
    restart => "/sbin/service lighttpd restart",
    }

    But it dose not work
    --
    You received this message because you are subscribed to the Google Groups "Puppet Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
    To post to this group, send email to puppet-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/puppet-users?hl=en.
    For more options, visit https://groups.google.com/groups/opt_out.
  • 尹川51web at Mar 16, 2013 at 1:27 am
    you could try exec type,
    http://docs.puppetlabs.com/references/2.7.latest/type.html#exec
    or MColletive http://docs.puppetlabs.com/mcollective

    On Fri, Mar 15, 2013 at 3:06 PM, 陈士超 wrote:

    i do like this:
    service{
    "lighttpd":
    hasrestart => true,
    hasstatus => true,
    restart => "/sbin/service lighttpd restart",
    }

    But it dose not work

    --
    You received this message because you are subscribed to the Google Groups
    "Puppet Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to puppet-users+unsubscribe@googlegroups.com.
    To post to this group, send email to puppet-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/puppet-users?hl=en.
    For more options, visit https://groups.google.com/groups/opt_out.



    --
    尹川
    成都世纪东方网络通信有限公司
    手机:18628014224
    QQ:254113859

    --
    You received this message because you are subscribed to the Google Groups "Puppet Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
    To post to this group, send email to puppet-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/puppet-users?hl=en.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Dan White at Mar 16, 2013 at 3:07 am
    Try this:

    service { "lighttpd":
    ensure => running,
    enable => true,
    hasrestart => true,
    hasstatus => true,
    restart => "/sbin/service lighttpd restart",
    }

    The “enable” parameter enables the service to start at boot.
    The “ensure” parameter ensures the service is running.
    On Mar 15, 2013, at 5:56 AM, 尹川51web wrote:

    you could try exec type,http://docs.puppetlabs.com/references/2.7.latest/type.html#exec
    or MColletive http://docs.puppetlabs.com/mcollective


    On Fri, Mar 15, 2013 at 3:06 PM, 陈士超 wrote:
    i do like this:
    service{
    "lighttpd":
    hasrestart => true,
    hasstatus => true,
    restart => "/sbin/service lighttpd restart",
    }

    But it dose not work
    --
    You received this message because you are subscribed to the Google Groups "Puppet Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
    To post to this group, send email to puppet-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/puppet-users?hl=en.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedMar 15, '13 at 7:06a
activeMar 16, '13 at 3:07a
posts4
users4
websitepuppetlabs.com

People

Translate

site design / logo © 2021 Grokbase