=== JanC_ is now known as JanC === devil is now known as Guest66561 === pbek_ is now known as pbek === Guest66561 is now known as devil_ [05:16] PR snapd#2256 opened: overlord/ifacestate: fix missing security setup for connected slot [05:22] Saviq hey there, can you help me in triaging LP: #1638405 ? [05:22] Bug #1638405: libunity not added to LD_LIBRARY_PATH [05:28] Bug #1638796 opened: mir clients that use cpu renderable surfaces don't work under confinement [05:34] Bug #1638798 opened: mir server process goes defunct when a mir client attaches under confinement === chihchun_afk is now known as chihchun [06:38] jdstrand: ack, thank you (for the policy comment) [07:17] bonjello [07:19] PR snapd#2257 opened: debian: golang is not installable on powerpc [08:32] PR snapd#2257 closed: debian: golang is not installable on powerpc [08:40] am i right in assuming snapcraft makes a local copy of my sources file? [08:40] tsdgeos: if the source is remote, indeed [08:40] if so any reason it doesn't make so of my /etc/apt/preferences one? [08:40] otherwise, it's using symlinks [08:41] I think that was planned to support that [08:41] because it's complaining abotu packages being broken [08:41] when they're fine [08:41] but they are creating their own local repo [08:41] it's snapcraft that broke them [08:41] * didrocks got that you told sources file as apt source, wasn't obvious at the start [08:41] but yeah, IIRC, there is a bug (or you should open one) about it [08:42] note though that wouldn't help building from launchpad [08:42] PR snapd#2258 opened: docs: move to github.com/snapcore/snapd/wiki [08:43] didrocks: ok, will try to open a bug [08:44] thanks! [08:51] PR snapd#2258 closed: docs: move to github.com/snapcore/snapd/wiki [08:52] Docs mooooved [08:52] Well, some docs anyway [08:59] PR snapd#2259 opened: tests: /dev/ptmx also broken on powerpc [08:59] PR snapcraft#886 opened: Support for gadget snaps [09:10] didrocks tsdgeos we never planned to support /etc/apt/preferences [09:11] sergiusens: oh, didn't you tell you wanted to support ppas? [09:11] and use host apt sources.list? [09:11] (and so I guess host apt, which is supporting apt pinning and such) [09:12] didrocks yeah, but never discussed /etc/apt/preferences at all [09:12] sergiusens: well, if you use host apt, you will get those options supported automatically :) [09:12] sergiusens: i don't know how half of this thing works, but if you're copying the sources file (that it seems you are at ./parts/unity8/ubuntu/etc/apt/sources.list) it only makes sense to copy the preferneces file [09:13] otherwise you're going to end up packaging the .deb file i didn't expec [09:13] t [09:13] tsdgeos it makes sense to you maybe; but sure, log a bug against the project [09:13] i already did [09:14] tsdgeos that's why you clean build ;-) [09:14] tsdgeos where? It never reached me, did you log it against the project? [09:14] https://bugs.launchpad.net/snapcraft/+bug/1638840 [09:14] Bug #1638840: snapcraft copies /etc/apt/sources but ignores /etc/apt/preferences [09:14] sergiusens, you probably want pstolowski to help with bug #1638405 [09:14] Bug #1638405: libunity not added to LD_LIBRARY_PATH [09:15] tsdgeos oh, 15 minutes ago [09:15] yes [09:15] tsdgeos how will you solve launchpad builds with your setup btw? [09:15] i don't understand the question [09:16] i'm a total snapcraft newbie [09:17] Saviq he mentioned unity7 (yeah, wrong person), just want to figure out how this is in his LD_LIBRARY_PATH... [09:17] but yeah, no worries [09:21] sergiusens, $SNAP/usr/lib/x86_64-linux-gnu/libunity should be added to a part / wrapper script, no? [09:30] pstolowski yes, but not as part of the base [09:31] we will be adding `build-environment` for parts to solve this per part [10:37] PR snapd#2259 closed: tests: /dev/ptmx also broken on powerpc [10:37] PR snapd#2260 opened: tests: add test that ensures the right content for /etc/os-release [10:56] oh dear [10:56] the Cubs won [10:56] who knows what could happen now?! [11:04] stgraber: jdstrand I can't install the lxd snap I built... It fails on 'installation not allowed by "lxd" slot rule of interface "lxd"' if I add slots:[lxd] to it, or without it the same with lxd-support [11:06] The error isn't very descriptive unfortunately... it doesn't even say exactly what part of it is the blocker. Not even --devmode makes a difference [11:08] Nothing in the logs [11:23] kalikiana_, what error? (not sure if you're talking to somebody, in which case ignore me) [11:25] Chipaca: installation not allowed by "lxd" slot rule of interface "lxd" - I used lxd: allow-installation: false deny-connection: true deny-auto-connection: true in basedeclaration.go for the lxd interface and added slots: [lxd] to the lxd snap [11:26] This was what was suggested I do in the review for https://github.com/snapcore/snapd/pull/2225/files [11:26] PR snapd#2225: Implement lxd-client interface exposing the lxd snap [11:26] The idea being, snapd can pull in the lxd snap when it's needed [11:27] Alas, I can't install that "providing" snap in the first place [11:41] kalikiana_: yes, that is a development rough edge that I brought up on the list recently. for now, temporarily adjust the base declaration so you can install it [11:43] jdstrand: Hmm which means what exactly? How can I "adjust" without changing the interface I want to have? [11:43] devmode doesn't work [11:45] kalikiana_: just make it look like 'bluetooth-control' but use 'app' instead of 'core' [11:45] kalikiana_: in other words, just have it not autoconnect, but otherwise it is installable and connectable [11:45] kalikiana_: when you are satisified with testing your snapd, undo that bit and submit the PR [11:46] kalikiana_: you'll need to do that for both lxd and lxd-support [11:55] can i remount the snap mounts as read/write? [11:55] i tried [11:55] sudo mount -o remount,rw /var/lib/snapd/snaps/unity8-session_x1.snap /snap/unity8-session/x1 [11:55] but didn't work [11:56] tsdgeos, indeed you can remount anything you like as readwrite ... but in case of a squashf img file that wont gain you anything ;) [11:56] tsdgeos: squashfs doens't support writing at all [11:56] tsdgeos: no. squashfs files are not writable [11:56] heh [11:56] meh [11:57] tsdgeos, what're you trying to do? === hikiko is now known as hikiko|ln [11:58] hi. Is this the correct channel to ask for advices on writing my snap.yaml (and packaging in general) ? [11:58] Chipaca: i'm trying to debug stuff, basically why unity8 snap doesn't start, by adding debugs, given how debug unfriendly this whole snap thing is [11:58] tsdgeos: snap try? [11:58] valve, probably :-) although writing the snap.yaml by hand is discouraged [11:58] Chipaca: how should I do ? [11:59] tsdgeos, what kalikiana_ said; don't create the snap, stage it and then snap try on the directory [11:59] valve, what're you trying to do? [11:59] tsdgeos: there is a trick you can do with overlayfs though to aid in debugging, etc. http://paste.ubuntu.com/23420437/ [11:59] valve, for most things, snapcraft is the way to do it [12:00] i guess i can try the try thing [12:00] tx [12:00] Chipaca: but have to start from a snap.yaml anyway (afaik) [12:00] valve, snapcraft.yaml [12:01] Chipaca: yes yes sorry [12:01] tsdgeos, "snap run --shell unity8-session" will spawn a shell inside your snap env ... [12:01] tsdgeos, and if you want to tyr our single chnages you can bind-mount writable files on top of the files inside the snap [12:01] *try out [12:01] My current problem is the following: I'm trying to pack a python application into a snap. The problem I've right now is that the app wants to access /etc/.cfg [12:01] valve, it has no way of overriding that? [12:02] valve, (what app, btw?) [12:02] Chipaca: that's true, might give it a different path (via a parameter). [12:05] but [12:09] What's the correct procedure to pack a "daemon" (general question) that assumes a configuration in /etc (just as an example) ? [12:11] kalikiana_: how does the snap try thing work? what directory do i have to pass it? [12:14] because if i pass the dir the snapcraft yaml file is, it doesn't like it [12:17] so it seems it needs the "prime" folder [12:18] very explanatory [12:22] the point is: the application brings in its dependencies and these assume files in /etc (just to get to my point) [12:23] I can change my application settings but have no (or just few) controls over the dependencies [12:23] I was assuming that the plugines were doing the maginc (just changing the prefix) underway [12:23] But while running the application (daemon to be correct) it cannot access /etc and thus doesn't work [12:24] I'm surely wrong somewhere (bad assumptions and/or understanding). The snapcraft.io documentation doesn't help me. [12:25] Where should I dig for mode documentation ? [12:53] valve: I don't think the plugins do prefix changing magic [13:02] zyga: the whole thing does use prefixes since (AFAIK: it builds and pack things accordingly). My point (due to ignorance - mostly) is: bringing things into a snap is process that tends to be bloody. I.e. I can change my app, I can delve into the details of some app. If I have a huge chain of dependencies ... the problems could be many [13:03] I supposed (probably wrong assumption) to have an "internal mapping" to let the code see a (sort of) container FS as a chroot-ed thing (please try to get me) [13:06] (Assuming that a package resolves to an environment variable to get a correct prefix ... works in - probably - just an handful of times)) === hikiko|ln is now known as hikiko [13:06] However: is there a point where to grab fresh / more complete documentation ? At the moment what I'm using is snapcraft.io [13:19] valve: we're cooking a feature that will make it easier, right now if you can pass various switches to make it ignore /etc it is much better/eaier [13:19] easier* [13:22] zyga: will do that using HOME (SNAP_DATA) at build and running phases [13:22] zyga: thanks [13:29] PR snapcraft#886 closed: Support for gadget snaps [13:33] PR snapd#2261 opened: release: os-release on core has changed [13:34] renato replied on telegram [13:39] Is there a timing for the jhbuild plugin (https://github.com/snapcore/snapcraft/pull/812) ? [13:39] PR snapcraft#812: New plugin: jhbuild [13:40] valve: there's some issues with that PR that i need to work through... [13:40] valve: i'm trying to remove the use of lxc in that plugin [13:41] it's a substantial re-write... [13:41] attente: thank you [14:00] Hi All, I'm new here. Just started working on snapping some neuroimaging tools. [14:00] Is there a way to create a "local" store so we can test everything out entirely without polluting the Ubuntu store with half baked packages? [14:02] steve___: hiya, welcome :) generally I'd say that's the purpose of the edge channel on the store, those packages aren't meant to be stable and could very well be half-baked [14:02] perfect! [14:38] Hi all, Im currently have a working .snap on Unity 7 on 16.04 and 16.10 however when I try to run it on Unity 8 (16.10) I get this error: https://pastebin.ubuntu.com/23420077/. Does anyone know what this means or knows a way to fix this? Any hep would be appreciated. [14:45] qt-ubuntu^Wubuntu-qt-runtime^W long live ubuntu-app-runtime! [14:46] renato__: Mirv: so, indeed, I think we should have the desktop launcher as part of the runtime content-shared snap [14:46] didrocks, hi [14:46] Hi all. How is snap set/get supposed to work? [14:46] or… hum, I wonder if the remote parts is after: another remote one, if that would work? [14:46] sergiusens: did you already try to test this: ^ ? [14:47] didrocks: so I was thinking about a launcher as part of a cloud part that is combined with the content shared snap use [14:47] yeah, either we combine, or we chain them [14:47] didrocks I did add logic for this to work in one of the latest releases; is it failing bad? [14:47] yeah chaining if possible [14:47] sergiusens: no, I was just curious, let's see if we can break it then! :-) [14:48] didrocks I am basically resolving the whole build chain before trying to even load a plugin now [14:48] didrocks, we will need a combination of gtk and qt launch, since some of our apps uses glib and qt [14:48] Mirv: ok, so to avoid repetition, let's have the 2 chaining each other, and adding a new part refering your work [14:48] so after: [ubuntu-app-runtime], which pulls in the ubuntu-app-runtime and the app plugs into it and uses ubuntu-app-launch (or some other name) to launch the app [14:48] renato__: but everything is shipped in ubuntu-app-runtime, correct? (gtk/glib and qt?) [14:50] Mirv: FYI, the launchers are https://github.com/ubuntu/snapcraft-desktop-helpers, adding a new built one isn't an issue, we just need to ensure the paths are correct and we ship in the runtime what we need [14:50] didrocks, I think so, Mirv can confirm that [14:50] there's a lot yes planned at the moment to be included [14:50] How is a snap supposed to get values set from the outside with "snap set"? [14:50] qengho: snapctl set/get from the hook itself [14:51] qengho: snapd has an example in the tests for this + the hook documentation [14:52] Mirv: so, yeah, let's add another flavor for it. Look at the current built-in helper (like the one used in the vlc snap) and tell me what paths needs to change. Then, we can revisit [14:52] and I think we'll "force" apps using this runtime to bindmount it in a well-known location [14:53] like $SNAP/snap-platform maybe [14:54] didrocks: right, after we have something (not really started on the cloud part / launcher yet, just have custom launchers for apps), it could live there too instead of own repo [14:54] didrocks, Mirv, we need to mount the share content in a fixed dir to get it working right? [14:54] right now the app can mount it whatever it want [14:54] renato__: yes well the launcher would want it to be in the known dir, like we now have it mounted under the app's ubuntu-app-runtime dir [14:54] didrocks: do you think a custom interface would be then better than content interface where we need to actually specify the directory? [14:56] Mirv: it would be better to reuse the same launcher structure directly, there is a common file and we try to share as much code between launchers as possible (which is the goal of this repo) [14:56] rather than each one having his own repo. We saw what happened then (broken in some place, not sure what people took) [14:56] there are makefiles to build them dynamically [14:57] (and so, they all have a common part, and a specific/dedicated one) [14:57] renato__: Mirv: for mounting, I would really force to mount them in a directory for the launcher to know where to look for (or add an option to the launcher to specify if default doesn't work for them) [14:57] didrocks: makes sense indeed [14:57] but best practice is to agree on a path [14:57] and use the same for all runtime [14:58] so content-share interface, and specifying a path (I would avoid runtime though for confusion with flatpak) [14:58] as they are not exactly the same thing [14:58] will be nice if the interface could create the path if that does not exists, right now the app need to install a empty dir [14:58] we agreed 3 months ago to use the term "platform" [14:58] renato__: yeah, it's because we are using bindmount… and the path is RO [14:58] so you can't create the dir dynamically to bindmount to it [14:59] didrocks: we agreed this week against platform and framework, and agreed today on ubuntu-qt-runtime -> ubuntu-app-runtime :) [14:59] (and we don't use overlayfs or something similar) [14:59] Mirv: hum, you should have talked to us, runtime was voted against by executive decision [14:59] so really, don't use it :) [15:00] the name again :D [15:00] oh this bikeshedding :) [15:01] classical, isn't it! :) [15:01] didrocks: yeah we've the content interface working now as described, renato__ is running calendar on it [15:01] Mirv: let's call it -foo for now :) [15:01] ok, so you only need to integrate to the launcher [15:02] yes renato just copy-pasted the launcher from my test app [15:02] do you want to have a first look? I think we can then amend the existings one to add more options if needed [15:02] should building snaps that pull a git repo work on launchpad? [15:02] I've a simple one that fails to build on [15:02] "git.gnome.org: Name or service not known" [15:02] Mirv, no I was using gtk-launcher and this consumes 50MB on the package [15:02] yeah I plan to take an actual first look really-soon-now, it's just all this bikeshedding that gets in front of it :) [15:03] seb128: I got some issues on some domains as well. It's pulled as source:, correct? [15:03] Mirv, didrocks we need a launcher that make uses of the library on the content share instead install new ones [15:03] renato__: oh, ok, I thought you copy-pasted from the timostestapp3 that would have the correct paths already [15:03] didrocks, yes, http://bazaar.launchpad.net/~ubuntu-desktop/+junk/ghexudt/view/head:/snapcraft.yaml [15:03] renato__: that's what the launcher on timostestapp3 does, yes :) [15:03] Mirv, I did a mix of both [15:03] seb128: I guess for the launchpad team, but yes, it's supposed to work [15:04] Mirv: creating a complete launcher respecting themes and such is really complex (with gsettings…) [15:04] I guess that's why renato__ pulled from both :) [15:04] didrocks: so indeed this https://github.com/tjyrinki/timostestapp3/blob/master/launcher is basically copy-pasting + sed from desktop-helpers [15:04] Mirv: ok, do you want me to work on this? (in this case, it will be on Monday), or do you want to have a go? [15:05] cjwatson, hey, should launchpad be able to pull a source from git.gnome.org to build a snap? I don't know if I do something wrong/stupid but my build fails on "git.gnome.org: Name or service not known" [15:05] seb128: git:// is using ssh IIRC, did you try the http:// version? [15:05] didn't, that could be it [15:06] if you use http:// postfix with .git [15:06] I think I changed it to git: because snapcraft is not smart enough to figure out that http://git is a git type source [15:06] (if gnome git doesn't support that, try with source-type: git instead) [15:06] yeah, it doesn't [15:06] so either gnome git support .git suffix on http url [15:06] or source-type [15:06] that should fix it [15:07] yes, you must use http:// [15:07] (or https://) [15:07] didrocks, I reported https://bugs.launchpad.net/snapcraft/+bug/1590797 on snapcraft about that btw just for the record [15:08] Bug #1590797: "no handler to manage source" is not an helpful error [15:08] but it's not about git:// using ssh (which it doesn't) [15:08] it's that builds currently go through a proxy that doesn't proxy the git:// protocol [15:08] didrocks, Monday is ok for me I will be off tomorrow :) [15:08] seb128: I did the .git suffix for detecting it, but yeah, I think if you have https://git., it should be considered as git [15:08] didrocks: I'll check tomorrow how does it look, but it's basically down to "use Qt and other libs primarily from $SNAP/ubuntu-app-foo" so let's check on Monday [15:08] renato__: ahah, ok :) [15:08] cjwatson, didrocks, thanks [15:09] Mirv: ok, let's do this! [15:09] Mirv, didrocks in case you need a app to try: https://code.launchpad.net/~renatofilho/ubuntu-calendar-app/snappy-runtime [15:10] great! that will be of a great help [15:12] didrocks: or the simple QML case https://github.com/tjyrinki/timostestapp3 :) [15:13] niemeyer this is the link that is needed https://hub.docker.com/add/automated-build/github/form/snapcore/snapcraft/ but the sad thing is, you need r/w https://forums.docker.com/t/cant-access-new-github-organization-for-automated-builds/1080/16 [15:13] niemeyer I'll keep it manual for now [15:13] Mirv: ok, please have a look tomorrow and let's sync up on Monday! :) [15:15] sergiusens: This is what I get when I try to create it: The repository name `snapcore/snapcraft` is already taken. [15:15] sergiusens: Did you create it? [15:15] let me delete it [15:16] niemeyer it is deleted now [15:17] sergiusens: "Could not find github repo `snapcore/snapcraft`" [15:17] sergiusens: Ah, wait [15:17] sergiusens: Maybe GitHub is preventing Docker from seeing it.. let me check the config on GH's side [15:25] renato__: didrocks: now with more bikeshedding :) https://code.launchpad.net/~timo-jyrinki/+snap/ubuntu-app-platform/+build/9019 [15:28] Mirv: ahah! well done :) [15:33] PR snapd#2262 opened: tests: disable autorefresh for the external backend [15:38] Bug #1638320 changed: remove core snap via snapweb fails but it still removes from the web interface === chihchun is now known as chihchun_afk === jamespag` is now known as jamespage [16:53] Hi all! Is there any way of cleaning old versions of a snap in Ubuntu desktop other than removing the old revisions one by one? [17:01] PR snapd#2261 closed: release: os-release on core has changed [17:17] Bug #1638988 opened: Cannot run spread hello world on all-snaps image [17:24] PR snapd#2263 opened: tests: check that gpio device nodes are exported after reboot [17:45] Bug #1638995 opened: lslogins displays user and email info [18:08] QUESTION: I've just installed Ubuntu Core on my Pi3, authenticated on UbuntuOne; what is my password? UbuntuOne pass isn't working. [18:19] swaveck, there is no local login ... use ssh [18:19] (like the config tool told you on the last page) [18:19] you can ssh and run "sudo passwd $USER" to set a password, that will also allow console logins then [18:22] thanks for help, I'll try it [18:44] Should I be able to run "snap set ..." and get a configure hook script called in a snap? When I add a configure file in meta/hooks/, "snap set" fails with error: cannont perform the following tasks:\n- cannot find hook "configure" in "snapname" [18:44] snap 2.16+16.10ubuntu1.2 [20:18] PR snapcraft#880 closed: Remove license concepts [20:42] How can I switch the channel of a snap? [20:43] If I was following "candidate" but now I want to follow "stable"? [20:52] nottrobin: snap refresh foo —stable [20:53] ah ha! [20:53] thanks [22:03] Pharaoh_Atem: thank you for helping on the release [22:03] Pharaoh_Atem: next week I'll look at what I can do to get the last few bits fixed [22:03] zyga: you're welcome [22:03] Pharaoh_Atem: tomorrow is wrap up and travel home (finally!) for me [22:03] well, at least we have the presets in Fedora 25 [22:04] https://bodhi.fedoraproject.org/updates/FEDORA-2016-7b70ad9b8e [22:04] Pharaoh_Atem: yes, and I'm sure we'll crack that last permission with fresh minds next week [22:05] nice :) [22:06] hi, could you pls help me on how to connect on ubuntu core 10 as loclahost? [22:07] vagpag_: You said "how to connnect on" and "10", and neither of those make any sense to me. Maybe say that another way. [22:08] Sorry! Let me try again. [22:12] After installing ubuntu core 16 on my pi 3 and first boot, I can't login as localhost. Hope that helps... [22:16] vagpag_: did you create the user account>? [22:18] vagpag_: That "localhost" part makes no sense still. After you initialize and give it an email address in Launchpad, it listens for incoming ssh. If you ssh to that from another place, with your username equal to your launchpad id, then you should be able to log in. That's the normal path. Did you do all that, or something else? [22:18] If something else, where did you differ? [22:19] $ ssh -l vagpag raspberrypiIPddress [22:20] Assuming https://launchpad.net/~vagpag is you [22:28] gengho: after entering my Ubuntu SSO credentials (step three in first boot), my screen says Ubuntu Core 16 on (tty1) / localhost login:. [22:30] vagpag_: ssh into that ip from a machine that has corresponding SSH keys [22:30] vagpag_: the username is your launchpad user ID (not email) [22:37] sorry. Can I pass parameters to a daemon such as: 'command: bin/fcd -d -c $SNAP/etc/fcd.cfg' (simple daemon) ? [22:38] valve: Sure! [22:39] supposed so BUT got 'fcd: error: unrecognized arguments: /snap/...' [22:39] zyga: how do i do that? ssh and ip of the machine? [22:40] valve: I should distinguish here, that snapcraft will let you do that. I'm not saying your command you are providing will like it. You're running "fcd" there. It complaining. Fix that. [22:40] vagpag_: like this [22:40] $ ssh -l vagpag raspberrypiIPddress [22:40] vagpag_: ssh zyga@1.2.4.4 [22:40] vagpag_: assuming zyga is the username on launchpad [22:41] vagpag_: and the box that runs the ssh command has ssh keys set and uploaded to launchpad under the account "zyga" [22:42] PR snapcraft#887 opened: Cache apt related files (config, packages) in 'apt' parent directory [22:43] Just to brag, I made a snapcraft yaml that reads params from a config file (that is previously written by a snap-set hook) and optionally sets args for a daemon, without a wrapper. http://bazaar.launchpad.net/~cmiller/+junk/sshesame-snap/view/head:/snapcraft.yaml [22:44] qengho: thanks [22:44] qengho: thanks [22:44] qengho: nice :) [22:45] qengho: there's a feature in snappy that's not yet available through snapcraft that will let you do that in a way that's even cleaner than that [22:45] zyga: really?! [22:45] qengho: there's a hook system and a way to run a special "app" (hook) on install [22:45] qengho: you can us it now but there's no way to express that in snapcraft yet [22:46] zyga: What's the new hook name? [22:46] qengho: configure [22:46] zyga: from a mac's terminal i run ssh -l vagpag and pi ip and know asks for a password [22:46] qengho: I hope it will be docuented soon at https://github.com/snapcore/snapd/wiki [22:46] zyga: Er, that's what I'm using. Walk back up that tree. ^ [22:46] vagpag_: do you have ssh keys on your launchpad account? [22:46] hmm :) [22:47] ohhh [22:47] nice! [22:47] qengho: this line, you can simplify it [22:47] command: sh -c "'test ! -f $SNAP_DATA/configuration || . $SNAP_DATA/configuration; $SNAP/bin/sshesame ${port:+-port $port} ${listen_address:+-listen_address $listen_address} 2>&1 |$SNAP/usr/bin/logger -t $SNAP_NAME'" [22:47] zyga: How? [22:47] qengho: configure runs before we start services AFAIR [22:47] zyga: yes. I have it on my ubuntu one account [22:48] vagpag_: do you have that ssh key on your mac? [22:48] zyga: No! [22:48] zyga: I guess i could put or "code" in the configuration file, but I'd rather not. [22:48] vagpag_: user account setup doesn't use passwords, you have to use ssh keys to log in [22:49] zyga: I don't know how to get optional params in the command:... otherwise. [22:49] vagpag_: afer that you can use 'sudo passwd' to set a password if you want [22:49] qengho: I mean you can just do any initial setup in the hook itself [22:50] zyga: I don't see it, but I'm happy with this anyway. [22:53] zyga: Is it up to me to poke at systemd to restart the service on config change? [22:53] me=user? [22:54] qengho: the hook can send it a signal to restart the service / reload it [22:54] qengho: the service can observe a config file [22:54] qengho: you can do many things [22:57] zyga: Hmm, is that in a "machines can theoretically do that"-sense, or a "hooks can sighup their process group to signal the services attached should reload and that's what we expect snap packagers to do" or something? [22:58] I have a simple daemon. No pidfile. systemd manages it, but I don't know the process name, and I'd be surprised if confinement lets me to a lot. [23:01] qengho: you can do that to your process from your own hook [23:01] qengho: the daemon can use inotify to look at the config file [23:01] qengho: and you can write a pidfile if that helps [23:01] qengho: or use any form of IPC to push new data into the sevice [23:01] qengho: snappy dosen't help or get in the way much [23:02] zyga: is this after we get a patches: object in snapcraft yaml so I can add inotify watching to somebody's code? [23:02] qengho: ? [23:03] qengho: no, why? [23:03] qengho: the service can inotify observe a config file [23:03] qengho: (or dir or something) [23:03] Oh, a wrapper can? I see. [23:03] qengho: and the config hook can just write to those files [23:03] perhaps I'm missing something and I didn't understand your question [23:07] zyga: I'll tell you my wishlist. The "configure" hook has an environment variable set that contains a list of the process IDs or service names of all the daemons snapd started, and the configure hook can maybe send some signal to those. [23:07] qengho: zyga: I was able to put a configure hook by "organize: configure: meta/hooks/configure" seems to work for me for now :) [23:07] AlbertA: I think that will fail when you try to "snap set" [23:08] qengho: worked fine for me :) [23:08] AlbertA: Not for me. :\ The nightly snapcraft PPA supports hooks too. [23:09] qengho: interesting though it would always be racy I'm afraid [23:09] AlbertA: nice! [23:09] qengho: though the hook might detect that and just fail [23:10] qengho: (if the user happens to concurrently restart services and use set" [23:10] ) [23:10] qengho: I need to get some rest, good night [23:11] zyga: Good night!