Re: [systemd-devel] Erlang bindings for systemd-notify API

2016-06-24 Thread Peter Lemenkov
Hello All! 2016-06-24 17:28 GMT+02:00 Lennart Poettering : > On Thu, 23.06.16 16:12, Peter Lemenkov (lemen...@gmail.com) wrote: > >> Sorry for resurrecting of an old thread, but I really hope to finish >> this task :) >> What should I do for moving this library under sys

Re: [systemd-devel] Erlang bindings for systemd-notify API

2016-06-23 Thread Peter Lemenkov
l) wrote: > >> On Sun, May 29, 2016 at 10:59:23AM +0200, Peter Lemenkov wrote: >> > Hello All! >> > I'd like to introduce another systemd-related project - >> > erlang-sd_notify. That's just a bindings for sd_notify API. Currently >> >

[systemd-devel] Erlang bindings for systemd-notify API

2016-05-29 Thread Peter Lemenkov
/github.com/lemenkov/erlang-sd_notify Library is a very simple one. It has been in use in a production environments for a couple of years already. I wonder if it's possible to host it somewhere at github.com/systemd among other bindings or it's too small to be promoted? -- Wit

[systemd-devel] Asking for advice - two network interfaces in a container

2015-07-14 Thread Peter Lemenkov
ice/hint on how to design something like this properly? So far I don't see a standard method for systemd-nspawn to assign more that one NIC to the container. -- With best regards, Peter Lemenkov. ___ systemd-devel mailing list systemd-de

[systemd-devel] [PATCH 1/1] Ensure that /run/systemd/network exists

2015-05-27 Thread Peter Lemenkov
This directory is used for storing transient/generated network service files. Unfortunately it doesn't generated during systemd-networkd startup. Let's fix that. --- src/network/networkd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/network/networkd.c b/src/network/networkd.c index

[systemd-devel] Adding additional network interfaces "dynamically", after networkd startup finishes

2015-05-27 Thread Peter Lemenkov
d restarts networkd (/bin/systemctl restart systemd-networkd.service). I wonder if it's a correct way to "dynamically" create network interfaces? Is it possible to ask networkd to re-read its configuration w/o restarting? Maybe D-Bus commands or something? -- With bes

[systemd-devel] [PATCH 1/1] Fix typo

2015-05-12 Thread Peter Lemenkov
Looks like sizeof(struct Header) is 240 not 224 Signed-off-by: Peter Lemenkov --- src/journal/journal-def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/journal-def.h b/src/journal/journal-def.h index ab089cb..39c9dd0 100644 --- a/src/journal/journal-def.h

[systemd-devel] systemd-networkd bridge doesn't work until switched to promiscous mode

2015-02-11 Thread Peter Lemenkov
Or maybe I missed something in docs? -- With best regards, Peter Lemenkov. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] systemd-nspawn@.service is unusable

2014-12-05 Thread Peter Lemenkov
2014-12-05 16:25 GMT+03:00 Lennart Poettering : > On Fri, 05.12.14 16:58, Peter Lemenkov (lemen...@gmail.com) wrote: > >> Ok, now I've got something. Here is a a diff between good (1st, >> commandline) and bad (2nd, systemd service) sessions: >> >>

Re: [systemd-devel] systemd-nspawn@.service is unusable

2014-12-05 Thread Peter Lemenkov
2014-12-05 4:43 GMT+03:00 Lennart Poettering : > On Thu, 04.12.14 20:12, Peter Lemenkov (lemen...@gmail.com) wrote: > >> Hello All! >> >> I'm playing with systemd-nspawn@.service and cannot make it work. It >> seems that similar issues were discussed (and a

Re: [systemd-devel] systemd-nspawn@.service is unusable

2014-12-05 Thread Peter Lemenkov
2014-12-05 12:41 GMT+03:00 Peter Lemenkov : > 2014-12-05 4:43 GMT+03:00 Lennart Poettering : >> On Thu, 04.12.14 20:12, Peter Lemenkov (lemen...@gmail.com) wrote: >> >>> Hello All! >>> >>> I'm playing with systemd-nspawn@.service and cannot make

Re: [systemd-devel] systemd-nspawn@.service is unusable

2014-12-05 Thread Peter Lemenkov
2014-12-05 4:43 GMT+03:00 Lennart Poettering : > On Thu, 04.12.14 20:12, Peter Lemenkov (lemen...@gmail.com) wrote: > >> Hello All! >> >> I'm playing with systemd-nspawn@.service and cannot make it work. It >> seems that similar issues were discussed (and a

[systemd-devel] systemd-nspawn@.service is unusable

2014-12-04 Thread Peter Lemenkov
advice on how to debug this and make systemd-nspawn@ usable are highly appreciate! -- With best regards, Peter Lemenkov. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] networkd - how to start service right after the "link configured" stage?

2014-11-25 Thread Peter Lemenkov
questions: - Does networkd emit some D-Bus event when the network link is configured? - If yes is it possible to add a systemd service triggered by this D-Bus message? - If no is there a way to start systemd service after the given network link is configured

Re: [systemd-devel] [HEADS-UP] PID 1 now ported to libsystemd-bus

2013-11-20 Thread Peter Lemenkov
us instead. is it available in upstream kernel or should anyone interested use some personal fork instead? -- With best regards, Peter Lemenkov. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] Need advice on daemon's architecture

2013-11-02 Thread Peter Lemenkov
hange type of a main service to "dbus" thus allowing systemd to know for sure if my service is fully initialized? -- With best regards, Peter Lemenkov. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedeskto

[systemd-devel] How to properly start user session from DM?

2013-03-06 Thread Peter Lemenkov
did I do wrong and how to fix that? * Could someone please explain what's the purpose of this /usr/lib/systemd/system/user@.service file and how to use it? -- With best regards, Peter Lemenkov. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCH] Disable firmware loading when firmware file is 0 byte

2012-11-16 Thread Peter Lemenkov
ere else. Just my 2c. -- With best regards, Peter Lemenkov. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] XDM and systemd --user

2012-09-28 Thread Peter Lemenkov
point your xdm-config to /bin/systemd-session > (this lets bash start a 'login' shell, thus parsing /etc/profile. and > exec's systemd afterwards) Thanks! Works like a charm. -- With best regards, Peter Lemenkov. ___ system

[systemd-devel] XDM and systemd --user

2012-09-28 Thread Peter Lemenkov
l scripts) and borrow its envvars (at least for some applications) - is it possible? Sorry for somewhat lame questions :). -- With best regards, Peter Lemenkov. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] XFS Mount issues (multiple mount concurrency issue?)

2012-09-14 Thread Peter Lemenkov
ace7388-bccb-439f-ac03-2a51046ff9a8" /media/partition1 -t xfs -o defaults,noatime,nodiratime,rw (code=exited, status=32) CGroup: name=systemd:/system/partition1.mount Sep 14 08:42:01 nostromo mount[343]: mount: unknown filesystem type 

[systemd-devel] Newbie systemd-related question - how to run a service w/o anything but network?

2012-07-26 Thread Peter Lemenkov
WantedBy=multi-user.target Could someone propose me something to restrict it further? it really doesn't need fs access, no exec, no /dev/* access, etc - just open socket and send/receive messages. Any advise will be very appreciated). -- With best reg

[systemd-devel] using native *.mount units instead of /etc/fstab - unpredictable state in case of many disks

2012-06-03 Thread Peter Lemenkov
nt me out what did I miss? I'm sure there is some specific *.service or *.target file I must add it as a dependency. Fedora 18 if it matters. -- With best regards, Peter Lemenkov. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http:

Re: [systemd-devel] How to modify files from within systemd *.service? (for example using /bin/echo and stdout redirection)

2012-05-26 Thread Peter Lemenkov
rks now even w/o systemd service. -- With best regards, Peter Lemenkov. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] How to modify files from within systemd *.service? (for example using /bin/echo and stdout redirection)

2012-05-26 Thread Peter Lemenkov
-c 'echo 2 > /tmp/test.txt' > > untested, but should work. Thanks - this indeed works. I just tested it. -- With best regards, Peter Lemenkov. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] How to modify files from within systemd *.service? (for example using /bin/echo and stdout redirection)

2012-05-26 Thread Peter Lemenkov
or me (for whatever reasons). I tried it again and it still doesn't work. Perhaps Fedora powerpc kernel config is different in some aspects. -- With best regards, Peter Lemenkov. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.

[systemd-devel] How to modify files from within systemd *.service? (for example using /bin/echo and stdout redirection)

2012-05-25 Thread Peter Lemenkov
dify the given file from systemd files w/o too much efforts? "Too much" means w/o writing simple console utility only with systemd+shell means. * How to restore the original ">" and "<" behaviour if required? -- With best regards, Peter Lemenkov. ___

[systemd-devel] How to properly allow user to adjust LimitNOFILE?

2011-11-22 Thread Peter Lemenkov
g like "ExecStartPre=ulimit -n $ULIMIT_MAX_FILES" where ULIMIT_MAX_FILES is read from EnvironmentFile, but maybe there are some other recommended ways? -- With best regards, Peter Lemenkov. ___ systemd-devel mailing list systemd-de