Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #176329

Re: hotpluggable member of a bridge

From Michael Biebl <biebl@debian.org>
Newsgroups linux.debian.user
Subject Re: hotpluggable member of a bridge
Date 2017-01-05 16:30 +0100
Message-ID <sWi9j-4Q4-3@gated-at.bofh.it> (permalink)
References <sW74d-5AZ-13@gated-at.bofh.it> <sWcdz-Is-7@gated-at.bofh.it> <sWcwW-Vl-35@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Am 05.01.2017 um 10:29 schrieb tomas@tuxteam.de:
> and delegates to specialized subsystems. In a pinch you can just sneak
> a complete shell script in an udev rule (and I'm guilty of having done
> such a thing [2]), but doing this as "system architecture" might lead to
> madness :-)

> [2] Once, for a customer: inserting the right storage medium (with
>    the right UUID) triggered a system backup.

Please don't do that. udev is a not a service manager and starting (long
running) tasks from a udev rule is bad.
See also the udev man page:

    Starting daemons or other long-running processes is not appropriate
    for udev; the forked processes, detached or not, will be
    unconditionally killed after the event handling has finished.

If you want to trigger the start of a service via udev, tag the device
with "systemd" and use SYSTEMD_WANTS [1] via a custom udev rule, like

<your matches>,TAG+="systemd",ENV{SYSTEMD_WANTS}="foo.service"



Regards,
Michael

[1]
https://www.freedesktop.org/software/systemd/man/systemd.device.html#SYSTEMD_WANTS=

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

hotpluggable member of a bridge Stefan Monnier <monnier@iro.umontreal.ca> - 2017-01-05 04:40 +0100
  Re: hotpluggable member of a bridge Nicolas George <george@nsup.org> - 2017-01-05 10:10 +0100
    Re: hotpluggable member of a bridge <tomas@tuxteam.de> - 2017-01-05 10:30 +0100
      Re: hotpluggable member of a bridge Michael Biebl <biebl@debian.org> - 2017-01-05 16:30 +0100
        Re: hotpluggable member of a bridge Sven Hartge <sven@svenhartge.de> - 2017-01-06 03:00 +0100
          Re: hotpluggable member of a bridge <tomas@tuxteam.de> - 2017-01-06 09:40 +0100
    Re: hotpluggable member of a bridge Stefan Monnier <monnier@iro.umontreal.ca> - 2017-01-05 16:30 +0100
      Re: hotpluggable member of a bridge Nicolas George <george@nsup.org> - 2017-01-05 16:40 +0100
        Re: hotpluggable member of a bridge Stefan Monnier <monnier@IRO.UMontreal.CA> - 2017-01-05 18:30 +0100
        Re: Congratulations Danielle , Your Roof is Covered - FREE!GYfb Danielle Gregory <danielle.k.gregory@gmail.com> - 2017-01-05 22:10 +0100
        Re: Congratulations Aileen , Your Roof is Covered - FREE!PHYi tazzygirl tazzygirl <saratazmtz77@gmail.com> - 2017-01-05 22:10 +0100
        RE: Congratulations Emmanuel , Your Roof is Covered - FREE!44OO Jennyetta Washington <manolofimbres@gmail.com> - 2017-01-05 22:20 +0100
  Re: hotpluggable member of a bridge Reco <recoverym4n@gmail.com> - 2017-01-05 17:10 +0100
    Re: hotpluggable member of a bridge Joshua Schaeffer <jschaeffer0922@gmail.com> - 2017-01-05 17:20 +0100
      Re: hotpluggable member of a bridge Reco <recoverym4n@gmail.com> - 2017-01-05 17:40 +0100
        Re: hotpluggable member of a bridge Joshua Schaeffer <jschaeffer0922@gmail.com> - 2017-01-05 18:10 +0100
        Re: hotpluggable member of a bridge Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-01-05 22:20 +0100
          Re: hotpluggable member of a bridge Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-01-05 22:30 +0100
          Re: hotpluggable member of a bridge Reco <recoverym4n@gmail.com> - 2017-01-05 22:40 +0100
            Re: hotpluggable member of a bridge Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-01-08 16:50 +0100
              Re: hotpluggable member of a bridge Reco <recoverym4n@gmail.com> - 2017-01-08 17:20 +0100
                Re: hotpluggable member of a bridge Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-01-08 18:00 +0100
    Re: hotpluggable member of a bridge Stefan Monnier <monnier@iro.umontreal.ca> - 2017-01-06 02:20 +0100
      Re: hotpluggable member of a bridge Reco <recoverym4n@gmail.com> - 2017-01-06 12:40 +0100
        Re: hotpluggable member of a bridge Reco <recoverym4n@gmail.com> - 2017-01-06 13:20 +0100
          Re: hotpluggable member of a bridge Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-01-08 17:00 +0100
            Re: hotpluggable member of a bridge Reco <recoverym4n@gmail.com> - 2017-01-08 17:20 +0100
              Re: hotpluggable member of a bridge Reco <recoverym4n@gmail.com> - 2017-01-08 17:30 +0100
              Re: hotpluggable member of a bridge Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-01-08 17:30 +0100
        Re: hotpluggable member of a bridge Stefan Monnier <monnier@iro.umontreal.ca> - 2017-01-06 22:50 +0100
  Re: hotpluggable member of a bridge Jonathan Dowland <jmtd@debian.org> - 2017-01-06 18:20 +0100

csiph-web