Re: [systemd-devel] Question: path-based deactivation or equivalent

2017-09-26 Thread Matthew Giassa
Additionally, does systemd support assigning an environment variable to an internal variable, ie: Environment=MYPIDFILE=/var/run/mine.pid PIDFILE=$MYPIDFILE I know there are workarounds for ExecStart for example, using /bin/bash to evaluate environment variables, but I think that special case o

Re: [systemd-devel] Dedup timers?

2017-09-26 Thread Peter Hoeg
Hi, I have a number of timers that all look something like the following: The boilerplate for such small things is killing me. Is there a good technique to replace them with something simpler? Maybe transient timers? What will be the drawbacks of transient timers comparing to regular timers?

Re: [systemd-devel] How to generate core file in system service

2017-09-26 Thread Kai Krakow
Am Mon, 25 Sep 2017 10:26:48 +0200 schrieb Miroslav Suchý : > Dne 25.9.2017 v 08:47 Mantas Mikulėnas napsal(a): > > But when I start the deamon by "teamd" directly, I could get core > > file. When I start it by systemctl start [email protected], no > > core file was generate when it crashed, but

[systemd-devel] Question: path-based deactivation or equivalent

2017-09-26 Thread matthew
I have a project where I'm adding some services to a Raspberry Pi 3, and have decided to go with systemd being (mostly) responsible for launching all of the services. All of the server processes use a common API to do some initial setup (argument parsing, init, etc), drop root permissions, and t

Re: [systemd-devel] Dedup timers?

2017-09-26 Thread Kai Krakow
Am Mon, 25 Sep 2017 22:45:23 -0700 schrieb Daniel Wang : > I have a number of timers that all look something like the following: > > cat /etc/systemd/system/foo.timer > [Unit] > Description=Run foo every hour > > [Timer] > OnCalendar=hourly > > cat /etc/systemd/system/bar.timer > [Unit] > Descr

Re: [systemd-devel] Dedup timers?

2017-09-26 Thread Auke Kok
On 09/25/2017 10:45 PM, Daniel Wang wrote: > I have a number of timers that all look something like the following: > The boilerplate for such small things is killing me. Is there a good > technique to replace them with something simpler? > Maybe transient timers? What will be the drawbacks of t