Re: [systemd-devel] macros in systemd unit files question

2013-08-01 Thread Michal Vyskocil
On Wed, Jul 31, 2013 at 06:59:18PM +0100, lux-integ wrote: On Wednesday 31 July 2013 14:22:35 Michal Vyskocil wrote: You can split the logic into two mount units with opposite Condition #mountpoint.mount [Unit] Description=mount mountpoint ConditionPathIsMountPoint=/mountpoint

Re: [systemd-devel] macros in systemd unit files question

2013-07-31 Thread Michal Vyskocil
/systemd.mount.html http://www.freedesktop.org/software/systemd/man/systemd.unit.html Regards Michal Vyskocil thanks in advance LuxInteg ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Journal Message Catalog

2013-02-15 Thread Michal Vyskocil
and so on. That should be a good solution for your usecase, right? so either foobar.catalog - C de_DE/foobar.catalog either C/foobar.catalog de_DE/foobar.catalog where C can be a link to en_US. Regards Michal Vyskocil signature.asc Description: Digital signature

Re: [systemd-devel] [PATCH] ignore comments in multiline variable definitions

2013-02-14 Thread Michal Vyskocil
, but have the old one in-place as a backup. Regards Michal Vyskocil signature.asc Description: Digital signature ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCH] Correctly parse commented multiline variables

2013-02-04 Thread Michal Vyskocil
differences in variable definitions, but I use dash as the reference one. So just s/shell/dash/ [1] http://lists.freedesktop.org/archives/systemd-devel/2013-February/008566.html Regards Michal Vyskocil On Fri, Feb 01, 2013 at 02:47:24PM +0100, Michal Vyskocil wrote: Buffer c must be freeed when

Re: [systemd-devel] [PATCH] List configuration dirs in order of a preference

2013-01-25 Thread Michal Vyskocil
On Fri, Jan 25, 2013 at 11:21:35AM +0100, Peter Sztanojev wrote: On Fri, Jan 25, 2013 at 11:14 AM, Michal Vyskocil mvysko...@suse.cz wrote: It makes an order of a preference more clear without a need to read the CONFIGURATION FORMAT section. --- man/binfmt.d.xml |2 +- man

[systemd-devel] [PATCH 1/2] continuation support for load_env_file

2013-01-18 Thread Michal Vyskocil
Variable definition can be written on more than one line - if each ends with a backslash, then is concatenated with a previous one. Only backslash and unix end of line (\n) are treated as a continuation. And backslash on the last line of the file is ignored. Fixes:

[systemd-devel] [PATCH 2/2] Document continuation support in systemd.exec

2013-01-18 Thread Michal Vyskocil
--- man/systemd.exec.xml |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml index 71472b4..8c23687 100644 --- a/man/systemd.exec.xml +++ b/man/systemd.exec.xml @@ -299,9 +299,11 @@ contain

[systemd-devel] [PATCH 1/2] systemd-nspawn: add --user option

2011-06-29 Thread Michal Vyskocil
Move the get_user_creds from execute.c to utils.c for later usage in nspawn.c. --- src/execute.c | 46 -- src/util.c| 47 +++ src/util.h|2 ++ 3 files changed, 49 insertions(+), 46 deletions(-)

Re: [systemd-devel] [PATCH] nspawn: spawn shell under specified --user

2011-06-27 Thread Michal Vyskocil
On Sun, Jun 26, 2011 at 09:59:14PM +0200, Zbigniew Jędrzejewski-Szmek wrote: On 06/24/2011 02:39 PM, Michal Vyskocil wrote: +int isdigits(const char* str) { +size_t i; + +if (!str) +return 0; + +for (i = 0; i != strlen(str); i

Re: [systemd-devel] [PATCH] nspawn: spawn shell under specified --user

2011-06-27 Thread Michal Vyskocil
On Mon, Jun 27, 2011 at 02:01:27PM +0200, Lennart Poettering wrote: On Fri, 24.06.11 14:39, Michal Vyskocil (mvysko...@suse.cz) wrote: Add -u/--user option, which changes the effective and real user and group id to the new value. The user must exists in the chroot, otherwise it will fail

[systemd-devel] [PATCH] nspawn: spawn shell under specified --user

2011-06-24 Thread Michal Vyskocil
Add -u/--user option, which changes the effective and real user and group id to the new value. The user must exists in the chroot, otherwise it will fail. Both username and user id are accepted. It also setup HOME, USER, LOGNAME and SHELL variables from /etc/passwd entries and create the user

[systemd-devel] Combination of Requisite/After works weird

2011-05-25 Thread Michal Vyskocil
When I remove the After=x.service, or use Before= (which has not effect in this case) from y.service, everythings works well, x.service refuse to start if y.service is not active. I use systemd-27. Regards Michal Vyskocil pgp9t9uA70M6t.pgp Description: PGP signature