<div dir="ltr">Package: salt<br>Version: 2015.8.8+ds-1<br>Severity: minor<br><br>I believe I've ran into a small bug in the Debian 7 init.d 
script. I'm currently working on a feature for the salt-bootstrap 
project to enable installing salt into a virtualenv on Debian (<a href="https://github.com/l2ol33rt/salt-bootstrap/tree/debian_venv_support" target="_blank">https://github.com/l2ol33rt/salt-bootstrap/tree/debian_venv_support</a>). This moves the daemon binary to a location other than the default: <span style="font-family:monospace,monospace">/usr/bin/salt-<daemon></span>. I've attempted to leverage the <span style="font-family:monospace,monospace">/etc/default/salt-<daemon></span> file to point to the new binary location. For example, the file <span style="font-family:monospace,monospace">/etc/default/salt-master</span> would contain:<br><span style="font-family:monospace,monospace">DAEMON=/usr/lib/virtualenv/salt/bin/salt-master<br><br></span><div><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif">The salt-bootstrap script pulls directly from the debian git repository (</font></span><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif"><span style="font-family:arial,helvetica,sans-serif"><a href="http://anonscm.debian.org/cgit/pkg-salt/salt.git/" target="_blank">http://anonscm.debian.org/cgit/pkg-salt/salt.git/</a>)</span> for its init.d scripts since they are not bundled with the salt project itself. However, the init.d scripts test for the daemon binary's existence right before the loading of </font>/etc/default/salt-<daemon> </span><span style="font-family:arial,helvetica,sans-serif">which then fails causing the service to exit immediately.</span><span style="font-family:monospace,monospace"><br></span><span style="font-family:arial,helvetica,sans-serif"><br></span></div><span style="font-family:arial,helvetica,sans-serif">Attached is my patch for the 4 salt init.d scripts, I hope this would be something worth including into the salt debian repo.</span><br><br>System Versions:<br>         dist: debian 7.10 <br>        machine: x86_64<br>        release: 3.2.0-4-amd64<br>         system: Linux<br>        version: debian 7.10<br><div><br>Thanks for your time,<br><br>~Rob</div> <a href="https://github.com/l2ol33rt" target="_blank">https://github.com/l2ol33rt<br><br><br></a><br></div>