<div dir="ltr">Greetings,<div><br></div><div>With our Rocket.Chat snap, we're looking to be able to allow someone to run an external mongodb instead of the built in one.  As well as we'd like to add something like caddy / traefik etc to do ssl termination.  But its not a daemon we would want enabled out of the box because of the effect on existing users.</div><div><br></div><div>So basically looking for a way let the user of a snap enable or disable two different daemons in our snap.</div><div><br></div><div>Is this possible using anything out of the box?  Or would I have to make the command ran in the daemon look at an environment variable / file etc. and determine if it should make the daemon just exit?</div><div><br></div><div>How have others handled this?  Or allowing users to customize snap behaviour?</div><div><br></div><div><br></div><div>Thanks,</div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">
<div><br></div><div><table border="0" cellspacing="0" cellpadding="0" style="color:rgb(0,0,0);font-family:verdana;font-size:medium">
        <tbody>
                <tr>
                        <td style="padding-right:15px">
                                <img src="https://cdn-download.rocket.chat/email-signature.png?v=3" style="width: 80px; display: block; margin-left: 10px;">
                        </td>
                        <td valign="top" style="padding-left:15px;border-left-width:1px;border-left-style:solid;border-left-color:rgb(240,240,240)">
                                <table width="100%" border="0" cellspacing="0" cellpadding="3" style="border-collapse:collapse;font-size:12px;margin-top:4px">
                                        <tbody>
                                                <tr>
                                                        <td style="padding:3px 0px 10px;margin:0px;font-family:verdana,geneva,sans-serif;font-size:12px;color:rgb(86,97,120)">
                                                                <b style="display:block;font-size:12px">Aaron Ogle</b>
                                                                <span style="color:rgb(153,153,153);font-size:10px;display:block">Core Developer</span>
                                                        </td>
                                                </tr>
                                                <tr>
                                                        <td style="padding:0px 0px 2px;margin:0px">
                                                                <p style="margin:0px;padding:0px"><a href="mailto:aaron.ogle@rocket.chat" style="color:rgb(156,160,172);font-size:10px" target="_blank">aaron.ogle@rocket.chat</a></p>
                                                        </td>
                                                </tr>
                                                <tr>
                                                        
                                                </tr>
                                                <tr>
                                                        <td style="padding:0px 0px 2px;margin:0px">
                                                                <p style="margin:0px;padding:0px"><a href="https://demo.rocket.chat/direct/aaron.ogle" style="color:rgb(156,160,172);font-size:10px" target="_blank">@aaron.ogle</a></p>
                                                        </td>
                                                </tr>
                                                <tr>
                                                        <td style="padding:0px 0px 2px;margin:0px">
                                                                <p style="margin:0px;padding:0px"><a href="https://rocket.chat" style="color:rgb(156,160,172);font-size:10px" target="_blank">https://rocket.chat</a></p>
                                                        </td>
                                                </tr>
                                        </tbody>
                                </table>
                        </td>
                </tr>
        </tbody>
</table></div>
</div></div>