The way you make the service start/stop by a specific user is to make sure
the OS-standard start/stop script do su/sudo at the correct point.

On Mon, Aug 30, 2010 at 6:43 AM, Daniel Pittman <[email protected]> wrote:

> Matt <[email protected]> writes:
>
> > I would like to use the type "service" to ensure that a service is
> currently
> > started. Is there a way to specify a user that must run start or stop
> > command?
>
> No.  Traditionally, the start and stop commands would ensure that the
> software
> ran as the correct user internally — most of them map directly to the OS
> facilities that start and stop services at boot time, which require that.
>
> I would strongly advise you follow that same path, because otherwise you
> risk a tiny typo or user-error resulting in your daemon running as root.
>
>        Daniel
> --
> ✣ Daniel Pittman            ✉ [email protected]            ☎ +61 401 155
> 707
>               ♽ made with 100 percent post-consumer electrons
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<puppet-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to