<div dir="ltr">Hi Enwei,<div><br></div><div>There are a few ways to handle it. </div><div><br></div><div>1) You do not need to make it a daemon before it is getting stable. When your run your app, just use "sudo" to run it on command line. When it is stable, change it to daemon.</div><div><br></div><div>2) You can use "snap enable/disable" to toggle the state of the app. When it is enabled, it starts to run again. In your case, your daemon app will be restarted.</div><div><br></div><div>Best regards,</div><div>XiaoGuo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 21, 2016 at 10:23 AM, Enwei Zhang <span dir="ltr"><<a href="mailto:enwei.zhang@canonical.com" target="_blank">enwei.zhang@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hello,<br></div>When I install a simple daemon snap, the daemon is started right after it is installed.<br></div>Suppose it stops due to some condition, is there a way to restart it?<br></div>Thanks a lot.<br><br></div>Br<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Enwei<br></font></span></div>
<br>--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">XiaoGuo, Liu </div></div></div></div>
</div>