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

2013-07-05 Thread Lennart Poettering
On Wed, 03.07.13 19:22, Cristian Rodríguez (crrodrig...@opensuse.org) wrote: El 03/07/13 12:44, Lennart Poettering escribió: * As discussed earlier, the low-level cgroup configuration options ControlGroup=, ControlGroupModify=, ControlGroupPersistent=,

[systemd-devel] Setting Up SSH Tunnels

2013-07-05 Thread CACook
For some years I've set up reverse SSH tunnels with a script, but when the tunnels go down they do not recover. I'd like to start and stop the tunnels using systemd. A typical command looks like this: /usr/bin/ssh -f -l sleeper -i /home/sleeper/.ssh/id_ecdsa -2 -4 -c aes256-ctr,aes128-ctr

Re: [systemd-devel] Setting Up SSH Tunnels

2013-07-05 Thread Reindl Harald
Am 05.07.2013 19:16, schrieb cac...@quantum-sci.com: For some years I've set up reverse SSH tunnels with a script, but when the tunnels go down they do not recover. I'd like to start and stop the tunnels using systemd. A typical command looks like this: /usr/bin/ssh -f -l sleeper -i

Re: [systemd-devel] Setting Up SSH Tunnels

2013-07-05 Thread Reindl Harald
Am 05.07.2013 21:20, schrieb cac...@quantum-sci.com: Reindl Harald: oneshot is plain wrong if you have a long living prcoess below a working unit to have a remote-server's ssh on localhost:10024 RestartSec=60 because so it survives reboots of the forwarded machine with auto reconnect

Re: [systemd-devel] Setting Up SSH Tunnels

2013-07-05 Thread CACook
Reindl Harald: But does this mean I have to have over 20 .services for my reverse tunnels? They could all start in parallel, but is there no better way? this is a *perfect* way and the only one Restart=always can work relieable no matter how many of them, build one, test it carefully and copy

Re: [systemd-devel] Setting Up SSH Tunnels

2013-07-05 Thread CACook
Reindl Harald: Am 05.07.2013 23:03, schrieb cac...@quantum-sci.com: Yes your command works standalone, and mine does too. The difference is yours does not release the shell. Maybe this is necessary for process tracking? if you think about how Restart=always works clearly *yes* But

Re: [systemd-devel] [PATCH] udev hwdb: Store binary database in libdir, not in /etc

2013-07-05 Thread Shawn
On Fri, Jul 5, 2013 at 2:32 PM, Michael Biebl mbi...@gmail.com wrote: 2013/7/5 Tom Gundersen t...@jklm.no: Notice that the cache file still cannot be generated at build-time (which is why some object to keeping it in /lib). The reason being I don't intend to do that, but instead run the

[systemd-devel] [PATCH] cgroups: chown user slices

2013-07-05 Thread Marc-Antoine Perennou
When creating the cgroup hierarchy for a user slice, chown this slice to the user uid. Signed-off-by: Marc-Antoine Perennou marc-anto...@perennou.com --- src/shared/cgroup-label.c | 8 1 file changed, 8 insertions(+) diff --git a/src/shared/cgroup-label.c b/src/shared/cgroup-label.c