<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 10, 2014 at 10:46 AM, Sergio Schvezov <span dir="ltr"><<a href="mailto:sergio.schvezov@canonical.com" target="_blank">sergio.schvezov@canonical.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Wed, Dec 10, 2014 at 5:39 PM, Kapil Thangavelu <span dir="ltr"><<a href="mailto:kapil.thangavelu@canonical.com" target="_blank">kapil.thangavelu@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">at the moment we're generating systemd from package metadata.yaml (we used to just include unit files in the package). i assume that's so we could embed/generate the right invocations for app armor and paths. But there's quite a lot of functionality that packages are giving up as a result, cron/timer and one off scripts come to mind. is there any chance we can expose more of this back to packages either via additional yaml translation or direct systemd conf sections for merge.</div></blockquote><div><br></div></span><div>I think we don't want to expose component technology in the packaging yaml. Your case certainly needs to be thought of though (and maybe make a comeback in a descriptive form).<br></div></div></div></div></blockquote><br>atm interesting systemd features are cron and the ability to do onetime scripts post snap package install but prior to job start.  its unclear from the extant docs if there others way to achieve the later. there's some notion of using the sysd cgroup features for limiting utilization but thats an admin install time concern not a packaging one per se.</div><div class="gmail_quote"><br>re abstract syntaxes here's a strawman</div><div class="gmail_quote"><br>cron: </div><div class="gmail_quote">   - period: crontab_syntax </div><div class="gmail_quote">     exec: path_in_snap/abc<br><br></div><div class="gmail_quote">post-install: </div><div class="gmail_quote">  - exec: path_in_snap/xyz<br><br>copied this into asana <a href="https://app.asana.com/0/21120773903349/21203020942488/f">https://app.asana.com/0/21120773903349/21203020942488/f</a></div><div class="gmail_quote"><br></div><div class="gmail_quote">re timers capability this seems to cover it best <a href="https://wiki.archlinux.org/index.php/Systemd/Timers">https://wiki.archlinux.org/index.php/Systemd/Timers</a></div><div class="gmail_quote"><br><div> </div></div></div></div>