Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

init.d script misconfiguration #99

Open
danfruehauf opened this issue Nov 12, 2015 · 3 comments
Open

init.d script misconfiguration #99

danfruehauf opened this issue Nov 12, 2015 · 3 comments

Comments

@danfruehauf
Copy link

init.d script should suid properly to the root user.

Looking at the init script for debian/ubuntu the problem is obvious. At lines:
https://github.com/poise/supervisor/blob/master/templates/default/debian/supervisor.init.erb#L95
https://github.com/poise/supervisor/blob/master/templates/default/debian/supervisor.init.erb#L146

You must add -u root -c root -g root, or set it to the proper user.

In my case, when running chef on the node, I get variables propagated from the chef run and it ends up setting $HOME to /home/chef and more.

@georgexsh
Copy link

georgexsh commented Dec 12, 2016

why not use distro shipped package and its init script?

@coderanger
Copy link
Member

@georgexsh Because consistency matters when automating. Also this cookbook is effectively deprecated pending rewrite.

@georgexsh
Copy link

@coderanger well, meet everyone's needs is impracticable, to me package from distro is best suited.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants