Re: [systemd-devel] Using systemd to as a FD Store to provide service while package upgrade

2016-01-12 Thread Pathangi Janardhanan
Hi Lennart, Thanks. Yes, shutdown does take care of removing the fds from the systemd context. The solution seems fine and it is working good. Thanks for the help. Thanks Jana On Tue, Jan 12, 2016 at 12:24 PM, Lennart Poettering wrote: > On Wed, 06.01.16 13:05, Pathangi Janardhanan (pat

Re: [systemd-devel] user unit blocking login shell from popping out because wanted by default target?

2016-01-12 Thread Lennart Poettering
On Sun, 10.01.16 17:15, Mantas Mikulėnas (graw...@gmail.com) wrote: > I remember this discussed before, I think one suggestion was to split into > two targets, and only hold the login until the first target. Nobody > implemented it though. Yes, that is indeed the plan, user@.service should only w

Re: [systemd-devel] user unit blocking login shell from popping out because wanted by default target?

2016-01-12 Thread Lennart Poettering
On Sun, 10.01.16 22:25, Tom Yan (tom.t...@gmail.com) wrote: > So I am recently experiencing some issue with pulseaudio (which I > already filed a bug report: > https://bugs.freedesktop.org/show_bug.cgi?id=93651) that it takes a > long time to start. > > The thing is, I am thinking whether it expo

Re: [systemd-devel] Multicast signaling with sd-bus questions

2016-01-12 Thread Lennart Poettering
On Tue, 12.01.16 20:25, Gorman, Brian (Vancouver) (bgor...@hp.com) wrote: > Hi Lennart, Do you have any suggestions on where to look to see a > good example of how to have a process emit a signal to a different > DBus listening process using sd-bus? If matching against ":1.x" is > not advised I am

Re: [systemd-devel] Failed to start Container: minus sign is replaced to slash in container name

2016-01-12 Thread Lennart Poettering
On Tue, 12.01.16 21:23, Stefan Schweter (ste...@schweter.it) wrote: > Dear systemd-users, > > e.g. when a container name includes a minus sign like: > > ls -l /var/lib/machines > insgesamt 4 > drwxr-xr-x 22 root root 4096 12. Jan 21:14 host.cis.uni-muenchen.de > > Enabling the systemd-nspawn se

Re: [systemd-devel] Multicast signaling with sd-bus questions

2016-01-12 Thread Gorman, Brian (Vancouver)
Hi Lennart, Do you have any suggestions on where to look to see a good example of how to have a process emit a signal to a different DBus listening process using sd-bus? If matching against ":1.x" is not advised I am assuming I should request a name? My initial attempt is: /* Sender */ r = sd_b

[systemd-devel] Failed to start Container: minus sign is replaced to slash in container name

2016-01-12 Thread Stefan Schweter
Dear systemd-users, e.g. when a container name includes a minus sign like: ls -l /var/lib/machines insgesamt 4 drwxr-xr-x 22 root root 4096 12. Jan 21:14 host.cis.uni-muenchen.de Enabling the systemd-nspawn service with: systemctl enable systemd-nsp...@host.cis.uni-muenchen.de Created symlink f

Re: [systemd-devel] Using systemd to as a FD Store to provide service while package upgrade

2016-01-12 Thread Lennart Poettering
On Wed, 06.01.16 13:05, Pathangi Janardhanan (path.j...@gmail.com) wrote: > Currently in my package scripts I am doing a service stop and start. > But when I need to do an upgrade, if I do a service stop, systemd clears > all the fds. So would that mean that my package scripts would have to: >

Re: [systemd-devel] Multicast signaling with sd-bus questions

2016-01-12 Thread Lennart Poettering
On Tue, 12.01.16 20:13, Gorman, Brian (Vancouver) (bgor...@hp.com) wrote: > Hi Mantas > > >>You really seem to be intent on using select() rather than an existing > >>event loop or, at least, standard poll(); curious why. > > There is existing code blocking on select, so it seems like the easie

Re: [systemd-devel] Multicast signaling with sd-bus questions

2016-01-12 Thread Gorman, Brian (Vancouver)
Hi Mantas >>You really seem to be intent on using select() rather than an existing event >>loop or, at least, standard poll(); curious why. There is existing code blocking on select, so it seems like the easiest way to crowbar DBus into my code. >>Also, the 'sender' field is always a bus name

Re: [systemd-devel] how to get sd_notify state/variables from dbus?

2016-01-12 Thread Lennart Poettering
On Tue, 12.01.16 17:55, Rick Richardson (rick.richard...@gmail.com) wrote: > Etcd can certainly store config variables. We have our own versioned > configuration database. However, I was hoping to use systemd as the > canonical source for binding which versions of which configs a process > launche

Re: [systemd-devel] On calendar timer

2016-01-12 Thread Lennart Poettering
On Tue, 12.01.16 19:13, arnaud gaboury (arnaud.gabo...@gmail.com) wrote: > > To express what you want to express I'd just list all days of the > > first week. > > > > Sun 1,3,5,7,9-1,2,3,4,5,6,7 02:00 > > Very good. If I follow you correctly, the service will be triggered on > month 1,3,5,7,9

Re: [systemd-devel] How to suppress coredumps when systemd-coredump is in use?

2016-01-12 Thread Lennart Poettering
On Tue, 12.01.16 18:08, Simon McVittie (simon.mcvit...@collabora.co.uk) wrote: > On 12/01/16 17:51, Lennart Poettering wrote: > > On Fri, 08.01.16 17:31, Robert O'Callahan (rob...@ocallahan.org) wrote: > >> Maybe systemd could query the > >> dumping process's RLIMIT_CORE with prlimit() and throw t

Re: [systemd-devel] On calendar timer

2016-01-12 Thread arnaud gaboury
On Tue, Jan 12, 2016 at 6:46 PM, Lennart Poettering wrote: > On Wed, 06.01.16 17:17, arnaud gaboury (arnaud.gabo...@gmail.com) wrote: > >> I am not sure about how to express date/time in a timer unit. >> >> I want the timer to be start every year(*), on month 1,3,5,7,9,11, >> first day of month at

Re: [systemd-devel] How to suppress coredumps when systemd-coredump is in use?

2016-01-12 Thread Simon McVittie
On 12/01/16 17:51, Lennart Poettering wrote: > On Fri, 08.01.16 17:31, Robert O'Callahan (rob...@ocallahan.org) wrote: >> Maybe systemd could query the >> dumping process's RLIMIT_CORE with prlimit() and throw the coredump away if >> the limit is 0. > > Yes, we really should check RLIMIT_CORE of t

Re: [systemd-devel] how to get sd_notify state/variables from dbus?

2016-01-12 Thread Rick Richardson
Etcd can certainly store config variables. We have our own versioned configuration database. However, I was hoping to use systemd as the canonical source for binding which versions of which configs a process launched with, since the information world be atomically associated with a service's ready

Re: [systemd-devel] how to get sd_notify state/variables from dbus?

2016-01-12 Thread Lennart Poettering
On Tue, 12.01.16 19:38, Mantas Mikulėnas (graw...@gmail.com) wrote: > On Tue, Jan 12, 2016 at 7:25 PM, Lennart Poettering > wrote: > > > On Fri, 08.01.16 18:09, Rick Richardson (rick.richard...@gmail.com) wrote: > > > > > I have a fleet of applications that need to pass some critical variables >

Re: [systemd-devel] How to suppress coredumps when systemd-coredump is in use?

2016-01-12 Thread Lennart Poettering
On Fri, 08.01.16 17:31, Robert O'Callahan (rob...@ocallahan.org) wrote: > http://rr-project.org has a test suite which runs a lot of programs that > intentionally crash with core-dumping signals. I added "ulimit -c 0" to the > test suite to suppress those core dumps, but I discovered that doesn't

Re: [systemd-devel] On calendar timer

2016-01-12 Thread Lennart Poettering
On Wed, 06.01.16 17:17, arnaud gaboury (arnaud.gabo...@gmail.com) wrote: > I am not sure about how to express date/time in a timer unit. > > I want the timer to be start every year(*), on month 1,3,5,7,9,11, > first day of month at 02:00:00 AM. Here is what I wrote: > > [Timer] > OnCalendar=*-1,

Re: [systemd-devel] Multicast signaling with sd-bus questions

2016-01-12 Thread Lennart Poettering
On Fri, 08.01.16 00:37, Gorman, Brian (Vancouver) (bgor...@hp.com) wrote: > Hi all, I am in the process of considering using sd-bus to > coordinate a system-wide multicast messaging system between > daemons. At this time I only have resources to look into using > libsystemd without system running.

Re: [systemd-devel] how to get sd_notify state/variables from dbus?

2016-01-12 Thread Mantas Mikulėnas
On Tue, Jan 12, 2016 at 7:25 PM, Lennart Poettering wrote: > On Fri, 08.01.16 18:09, Rick Richardson (rick.richard...@gmail.com) wrote: > > > I have a fleet of applications that need to pass some critical variables > > back to systemd so that our services monitor can collect them. My hope > is >

Re: [systemd-devel] User service with suid executable

2016-01-12 Thread Lennart Poettering
On Fri, 08.01.16 13:49, Martin Novák (mt...@seznam.cz) wrote: > On 01/08/2016 11:27 AM, Simon McVittie wrote: > > On 07/01/16 23:14, Martin Novák wrote: > >> I've created this (toy) user service for running desktop of differnt > >> user > > > > I don't think a user service is an appropriate tool f

Re: [systemd-devel] how to get sd_notify state/variables from dbus?

2016-01-12 Thread Lennart Poettering
On Fri, 08.01.16 18:09, Rick Richardson (rick.richard...@gmail.com) wrote: > I have a fleet of applications that need to pass some critical variables > back to systemd so that our services monitor can collect them. My hope is > that this can be done via sd_notify as it is very much a config-manag

Re: [systemd-devel] Subprocess

2016-01-12 Thread Lennart Poettering
On Mon, 11.01.16 19:58, Mihamina RAKOTOMANDIMBY (mihamina-rakotomandi...@rktmb.org) wrote: > Hi all, > > Walking trhough my virtual machines, I noticed something strange: > The sensu process is inside the CFEngine CGroup. > > This is mainly because of the way I launch Sensu after install > > P

Re: [systemd-devel] radvd and sysctl systemd under Debian

2016-01-12 Thread Colin Guthrie
William Hay wrote on 08/01/16 16:44: > Which has CONFIG_IPV6=y meaning the various IPV6 sysctls should be available > as soon as the /proc filesystem is mounted. > > /etc/sysctl.d/ contains only 99-sysctl.conf > which is a symlink pointing to /etc/sysctl.conf > > which contains the following unc

Re: [systemd-devel] Using Systemd "FD Store" facilitiy

2016-01-12 Thread Lennart Poettering
On Tue, 12.01.16 01:50, Pathangi Janardhanan (path.j...@gmail.com) wrote: > Hi, > > I had previously sent a mail on this but got no response, so wanted to > check again. > > I am trying to use systemd as a way to store and restore the FDs used by a > service, so that the service can provide co

Re: [systemd-devel] info/request

2016-01-12 Thread Lennart Poettering
On Tue, 12.01.16 14:34, Moreanu Robert - Nicolae (robertmore...@gmail.com) wrote: > hi, > > i have to file word.docx and excel.xlsx on my hdd on desktop of debian and > I want to copy them from a live Linuxmint usbstick but I cant because I > have denied permiss acces on them, also I can't open

Re: [systemd-devel] How to add startup delay?

2016-01-12 Thread Martin Pitt
Hello Masanari, Masanari Iida [2016-01-12 22:07 +0900]: > My question is How can I add 30sec delay for squid.service startup ? The simplest thing would be to add a drop-in /etc/systemd/system/squid.service/delay.conf with [Service] ExecStartPre=/bin/sleep 30 systemd has timer units too, but

[systemd-devel] How to add startup delay?

2016-01-12 Thread Masanari Iida
Hi, I want to start squid.service 30sec after the network.service complete initialization. Currently I know how to change unit startup order. ( Aadd "netweork.service" in After = line of squid.service) My question is How can I add 30sec delay for squid.service startup ? My environment is on Cent

[systemd-devel] info/request

2016-01-12 Thread Moreanu Robert - Nicolae
hi, i have to file word.docx and excel.xlsx on my hdd on desktop of debian and I want to copy them from a live Linuxmint usbstick but I cant because I have denied permiss acces on them, also I can't open this file from live Linuxmint. can you tell me how I can to copy this 2 file? tell me a proce