Set Service to delayed start on windows upon restart

172 views
Skip to first unread message

Raghu Ram Baisani

unread,
May 12, 2021, 7:52:37 AM5/12/21
to Puppet Users
Hi Team

I want to set the service to use delayed start when ever I did a restart of the windows machine.
I thought to use service puppet resource,
When I look at the options available for the property enable, I found 
  • true -> this means enable the service
  • false -> this means disable the service
  • manual -> the service has to be enabled manually
  • mask -> What does this mean?
What is the value and attribute to provide the option of delayed start of the service?
Is it possible to use delayed start of the service which is a windows service property.

Any kind help is appreciated.

Thanks
Raghuram Baisani

Gabriel Nagy

unread,
May 12, 2021, 7:59:33 AM5/12/21
to puppet...@googlegroups.com
Hi Raghuram,

Delayed start for Windows services has been available since Puppet 6.10.1 (https://tickets.puppetlabs.com/browse/PUP-6382). If you're on a supported version setting `enable => delayed` on the service should work.


Mask is a value that only takes effect when the service provider is systemd, and corresponds to the `systemctl mask` functionality: https://fedoramagazine.org/systemd-masking-units/

Hope this helps,
Gabi

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/88be9274-31b3-4dc8-8a52-3bea333b1e04n%40googlegroups.com.

Raghu Ram Baisani

unread,
May 12, 2021, 8:01:14 AM5/12/21
to puppet...@googlegroups.com

Thanks mate

Regards
Raghuram

You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/r0QhQCZJR3A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAALo1wEwncMgPi-OA5B1191uqw8Te0_axoQ6j6LhmLM62y9Mfg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages