saltstack-formulas / graphite-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
15 stars 41 forks source link

Ensure lock file location exists #16

Open joe-bowman opened 7 years ago

joe-bowman commented 7 years ago

The supervisor init script attempts to touch the file /var/lock/subsys/supervisord without asserting that the parent folder exists, resulting in a failure to start the service.

We should ensure this folder exists as part of the salt state.

joe-bowman commented 7 years ago

It transpires that the /var/lock/subsys appears to be a Redhat-based distro thing - hence not existing under Debian distros.

The path used probably ought to be distro specific then, rather than creating the subsys directory.

joe-bowman commented 7 years ago

This issue is negated by #21 - #20 'fixed' the issue, but was closed because of further dependencies under Debian.