[systemd-devel] Specifying calendar events in an arbitrary timezone

2016-12-15 Thread Ran Benita
I would like to schedule some timers to execute daily at a given time in some given timezone. My use-case for this is: - The server's local timezone is UTC - this is just good practice for various reasons, so I don't want to change that. - For business reasons, the service I want to run needs t

Re: [systemd-devel] Specifying calendar events in an arbitrary timezone

2016-12-15 Thread Ran Benita
On Thu, Dec 15, 2016 at 06:35:15PM +0100, Lennart Poettering wrote: > So yeah, we'd love to support this, but are waiting for a suitable API. I see, makes sense. Since new glibc API will probably be slow to come, if ever, it might make sense to circumvent it and go for the tzdata directly? It see

[systemd-devel] resolved: does DNSSEC=allow-downgrade affect caching?

2016-04-13 Thread Ran Benita
Hey, I read in the v229 NEWS that it is now possible to specify DNSSEC=allow-downgrade and decided to try it. Note that I use my local home router's DNS server which certainly does not support DNSSEC. I configured the system to use resolved by changing "dns" to "resolve" in nsswitch.conf. I use sy

Re: [systemd-devel] resolved: does DNSSEC=allow-downgrade affect caching?

2016-04-13 Thread Ran Benita
OK, I just looked at the logs and figured out what happens: resolved crashes whenever I perform a query with allow-downgrade, and after a few times it doesn't restart and presumably the nss module falls back to direct DNS queries. Here is the log: Apr 13 13:56:31 ran systemd[1]: Started Network Na

Re: [systemd-devel] resolved: does DNSSEC=allow-downgrade affect caching?

2016-04-13 Thread Ran Benita
On Wed, Apr 13, 2016 at 01:04:17PM +, Zbigniew Jędrzejewski-Szmek wrote: > On Wed, Apr 13, 2016 at 02:26:49PM +0300, Ran Benita wrote: > > coredumpctl doesn't show the crash so can't say what it's about. Maybe > > it's a distro problem (archlinux) or it

[systemd-devel] [PATCH] add bash completion for systemctl --system

2010-11-08 Thread Ran Benita
ctl-bash-completion.sh new file mode 100644 index 000..53f8e52 --- /dev/null +++ b/src/systemctl-bash-completion.sh @@ -0,0 +1,145 @@ +# This file is part of systemd. +# +# Copyright 2010 Ran Benita +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU

[systemd-devel] [PATCH] man, systemctl: correct handling of compatibility commands

2010-11-26 Thread Ran Benita
init scripts and the Debian Policy Manual (9.3.2), not to mention the name itself, suggest that it should be the same as the reload-or-restart command. There are also some spelling corrections. From 696db0b37560b53c615df3b1c6c3c5ba991dfcb3 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Fri, 26 Nov

Re: [systemd-devel] [PATCH] man, systemctl: correct handling of compatibility commands

2010-11-28 Thread Ran Benita
On Sun, Nov 28, 2010 at 15:19, Kay Sievers wrote: > On Fri, Nov 26, 2010 at 23:56, Ran Benita wrote: >> The manpage says condrestart is equivalent to reload-or-try-restart, but >> the code and the sysvinitscripts file from the initscripts package says >> it is actually th

Re: [systemd-devel] [PATCH] man, systemctl: correct handling of compatibility commands

2010-11-30 Thread Ran Benita
On Mon, Nov 29, 2010 at 20:10, Kay Sievers wrote: > On Mon, Nov 29, 2010 at 18:26, Bill Nottingham wrote: >> Ran Benita (ran...@gmail.com) said: >>> These tiny differences were confusing enough for the author of the >>> manpage, and I managed to get it wrong as well;

Re: [systemd-devel] [PATCH 1/2] man: fix localectl set-x11-keymap syntax description

2014-10-17 Thread Ran Benita
On Fri, Oct 17, 2014 at 02:02:12PM +0200, Jan Synacek wrote: > --- > man/localectl.xml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/man/localectl.xml b/man/localectl.xml > index 38e73c7..c332027 100644 > --- a/man/localectl.xml > +++ b/man/localectl.xml > @@ -178,7 +17

Re: [systemd-devel] [PATCH 2/2] localectl: verify layout, model, variant and options

2014-10-17 Thread Ran Benita
On Fri, Oct 17, 2014 at 02:02:13PM +0200, Jan Synacek wrote: > When setting any of those using set-x11-keymap, check that their values > are available on the system. I have only skimmed this patch, but generally: 1. There can only be one model. 2. There can be multiple layouts and variants, comma

Re: [systemd-devel] [PATCH 1/2] man: fix localectl set-x11-keymap syntax description

2014-10-20 Thread Ran Benita
On Mon, Oct 20, 2014 at 11:07:06AM +0200, Jan Synacek wrote: > Ran Benita writes: > > On Fri, Oct 17, 2014 at 02:02:12PM +0200, Jan Synacek wrote: > >> --- > >> man/localectl.xml | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >&g

Re: [systemd-devel] [PATCH 2/2] localectl: verify layout, model, variant and options

2014-10-20 Thread Ran Benita
On Mon, Oct 20, 2014 at 11:15:14AM +0200, Jan Synacek wrote: > Ran Benita writes: > > On Fri, Oct 17, 2014 at 02:02:13PM +0200, Jan Synacek wrote: > >> When setting any of those using set-x11-keymap, check that their values > >> are available on the system. > > &

Re: [systemd-devel] writing service file that used some /proc/cmdline variable

2014-05-21 Thread Ran Benita
On Wed, May 21, 2014 at 09:38:43PM +0400, Vasiliy Tolstov wrote: > Hello. I'm need to write specific service file that using > /proc/cmdline variable (not standard, my own). > Does systemd already have parsed array or how can i do that? ConditionKernelCommandLine= See systemd.unit(5) _

Re: [systemd-devel] writing service file that used some /proc/cmdline variable

2014-05-21 Thread Ran Benita
On Wed, May 21, 2014 at 08:44:22PM +0300, Ran Benita wrote: > On Wed, May 21, 2014 at 09:38:43PM +0400, Vasiliy Tolstov wrote: > > Hello. I'm need to write specific service file that using > > /proc/cmdline variable (not standard, my own). > > Does systemd already have pa

Re: [systemd-devel] [PATCH 11/11] Make redirections work with the bash command completions

2014-06-13 Thread Ran Benita
>From a cursory look, the bash-completion package deals with this issue in a more systematic way. See _init_completion() in /usr/share/bash-completion/bash_completion. Maybe it's worthwhile to (conditionally?) use that if possible. Ran On Fri, Jun 13, 2014 at 04:41:10PM +0200, Werner Fink wrote:

Re: [systemd-devel] [ANNOUNCE] systemd 27

2011-05-21 Thread Ran Benita
On Sat, May 21, 2011 at 15:53, microcai wrote: > > 于 2011年05月21日 20:44, Kay Sievers 写道: > >>> No, NO, NO! Don't use the release. > >>> > >>> It's totally unstable. do some systemctl stuff, systemd crashed. > >> > >> Hmm? > >> > >> In which way? > >> > >> Can you provide a backtrace? > > > > syste

[systemd-devel] [PATCH 3/3] bash-completion: rename file since it is no longer for systemctl only

2011-09-23 Thread Ran Benita
--- Makefile.am|2 +- ...sh-completion.sh => systemd-bash-completion.sh} |0 2 files changed, 1 insertions(+), 1 deletions(-) rename src/{systemctl-bash-completion.sh => systemd-bash-completion.sh} (100%) diff --git a/Makefile.am b/Makefile.am inde

[systemd-devel] [PATCH 1/3] bash-completion: update with new verbs and arguments

2011-09-23 Thread Ran Benita
Adds arguments --root= and --runtime. Adds verbs link, mask, unmask, reenable, list-unit-files. Also uses list-unit-files to make nicer enable and disable completions. --- src/systemctl-bash-completion.sh | 49 + 1 files changed, 38 insertions(+), 11 deletions

[systemd-devel] [PATCH 2/3] bash-completion: add completions for systemd-loginctl

2011-09-23 Thread Ran Benita
--- src/systemctl-bash-completion.sh | 83 ++ 1 files changed, 83 insertions(+), 0 deletions(-) diff --git a/src/systemctl-bash-completion.sh b/src/systemctl-bash-completion.sh index c0f846c..84290bc 100644 --- a/src/systemctl-bash-completion.sh +++ b/src/sys

[systemd-devel] [PATCH] man: document list-unit-files

2011-09-24 Thread Ran Benita
It's documented in the --help, but not in the manpage. --- man/systemctl.xml |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/man/systemctl.xml b/man/systemctl.xml index 468141c..894dec7 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -595,6 +595,13 @@

[systemd-devel] [PATCH] man: document list-unit-files

2011-09-24 Thread Ran Benita
It's documented in the --help, but not in the manpage. --- man/systemctl.xml |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/man/systemctl.xml b/man/systemctl.xml index 468141c..894dec7 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -595,6 +595,13 @@

[systemd-devel] [PATCH 1/3] bash-completion: update with new verbs and arguments

2011-11-02 Thread Ran Benita
Adds arguments --root= --runtime --no-legend. Adds verbs link mask unmask reenable list-unit-files. Also uses list-unit-files to make nicer enable and disable completions. Rebased due to changes in systemctl. --- src/systemctl-bash-completion.sh | 61 +++-- 1 fil

[systemd-devel] [PATCH 2/3] bash-completion: add completions for systemd-loginctl

2011-11-02 Thread Ran Benita
This script is straightforward and should give proper completions for all of systemd-loginctl's verbs. --- src/systemctl-bash-completion.sh | 83 ++ 1 files changed, 83 insertions(+), 0 deletions(-) diff --git a/src/systemctl-bash-completion.sh b/src/systemct

[systemd-devel] [PATCH 3/3] bash-completion: rename file since it is no longer for systemctl only

2011-11-02 Thread Ran Benita
--- Makefile.am|2 +- ...sh-completion.sh => systemd-bash-completion.sh} |0 2 files changed, 1 insertions(+), 1 deletions(-) rename src/{systemctl-bash-completion.sh => systemd-bash-completion.sh} (100%) diff --git a/Makefile.am b/Makefile.am inde

Re: [systemd-devel] User Login and custom .service file

2011-11-25 Thread Ran Benita
On Fri, Nov 25, 2011 at 03:50:06AM +, Malte Brandy wrote: > Lennart Poettering poettering.net> writes: > > On Mon, 01.08.11 13:31, George Stefan (stefan.george87 gmail.com) > > wrote: > > > Hi, > > > I have a system configuration that requests the possibility of having > > > multiple users.

Re: [systemd-devel] WorkingDirectory for user units

2011-12-03 Thread Ran Benita
On Sat, Dec 03, 2011 at 02:32:19PM +0100, Thomas Meyer wrote: > Hi, > > I put a "user" unit in "/usr/lib/systemd/user" called > "smServer.service": > > [Unit] > Description=ShortMessage Server > After=network.target > > [Service] > Type=simple > StandardOutput=syslog > Environment=CLASSPATH=/usr

[systemd-devel] [PATCH] unit: add specifiers for user name and home directory

2011-12-08 Thread Ran Benita
Currently there is no way to refer to the user's name or home directory from within a unit file. This is mainly a problem for unit files intended for a --user systemd instance, where you might want to set the user's home directory in WorkingDirectory, or otherwise refer to the user's name. This pa

[systemd-devel] [PATCH v2] unit: add specifiers for user name and home directory

2011-12-16 Thread Ran Benita
Currently there is no way to refer to the user's name or home directory from within a unit file. This is mainly a problem for unit files intended for a --user systemd instance, where you might want to set the user's home directory in WorkingDirectory, or otherwise refer to the user's name. This pa

Re: [systemd-devel] [PATCH] unit: add specifiers for user name and home directory

2011-12-16 Thread Ran Benita
On Thu, Dec 15, 2011 at 04:01:05PM +0100, Lennart Poettering wrote: > On Fri, 09.12.11 03:00, Ran Benita (ran...@gmail.com) wrote: > > > +_username = username; > > +r = get_user_creds(&_username, &uid, &gid, &home); > > +

Re: [systemd-devel] [PATCH] unit: add specifiers for user name and home directory

2011-12-16 Thread Ran Benita
On Fri, Dec 16, 2011 at 05:10:45PM +0100, Lennart Poettering wrote: > On Fri, 16.12.11 12:41, Ran Benita (ran...@gmail.com) wrote: > > > > > On Thu, Dec 15, 2011 at 04:01:05PM +0100, Lennart Poettering wrote: > > > On Fri, 09.12.11 03:00, Ran Beni

Re: [systemd-devel] Proposal: extend support for user session unit features

2012-07-10 Thread Ran Benita
On Tue, Jul 10, 2012 at 05:00:43AM +, Kok, Auke-jan H wrote: > So in short, I'd like to do both: > > - have systemd chdir to $HOME if uid != 1 > > - extend the printf specifier list for user sessions with a specifer > that can be used in various fields to refer to at minimum $HOME ("%h" > ?)

Re: [systemd-devel] Proposal: extend support for user session unit features

2012-07-10 Thread Ran Benita
On Tue, Jul 10, 2012 at 04:20:14PM +, Kok, Auke-jan H wrote: > On Tue, Jul 10, 2012 at 2:06 PM, Lennart Poettering > wrote: > > On Tue, 10.07.12 15:32, Ran Benita (ran...@gmail.com) wrote: > > > >> > >> On Tue, Jul 10, 2012 at 05:00:43AM +, Kok, Auke-

Re: [systemd-devel] [EXT] Best practice for giving a system daemon access to smartcard readers

2025-02-18 Thread Ran Benita
On Tue, Feb 18, 2025, at 10:18, Windl, Ulrich wrote: > Hi! > > Did you consider using ACLs instead of changing owner and group? However I > must admit I never tried it with devices. > So my idea was to add an ACL for pcscd when the service is in use and drop > that right if the service is not a

[systemd-devel] Best practice for giving a system daemon access to smartcard readers

2025-02-17 Thread Ran Benita
Hi, I am working on improving the security of the pcscd smartcard daemon by running it with a system user instead of root (the pcsclite author indicated support for this). I'd like to ask for advice on a particular point. # Background For those who have never heard of it, pcscd[0][1] is part of