[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: udev-Frage



Am Sun, 02 Jun 2013 19:49:30 +0200
schrieb Michael Biebl <biebl@debian.org>:
> 
> Du solltest generell keine lang laufenden Task via RUN rules starten.
> Dafür wurde dieser Mechanismus nicht konzipiert.
> Schon gar nicht X11 Programme.
> 
> Siehe auch die entsprechende udev man page dazu:
> 
> RUN{type}
> Add a program to the list of programs to be executed after processing
> all the rules for a specific event, depending on type:
> 
> program
> Execute an external program specified as the assigned value. If no
> absolute path is given, the program is expected to live in
> /usr/lib/udev, otherwise the absolute path must be specified.
> 
> This is the default if no type is specified.
> 
> builtin
> As program, but use one of the built-in programs rather than an
> external one.
> 
> The program name and following arguments are separated by spaces.
> Single quotes can be used to specify arguments with spaces.
> 
> This can only be used for very short-running foreground tasks. Running
> an event process for a long period of time may block all further
> events for this or a dependent device.
> 
> 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.

Das habe ich in der manpage zwar gesehen, es ist aber schwierig zu
beurteilen, was nun eine lang laufende Task ist und was nicht. Ich habe
mich zu diesem Schritt entschieden, weil ich mich erinnere, dass mal im
"Perlmaster" ein Script zu finden war, welches eben ein Backup via udev
startete. Und nachdem ich nun per Duckduckgo ziemlich viele Scripts
gefunden habe, die ähnliches machen, ging ich davon aus: Man darf das.

Das mit dem X leuchtet ein... leider :-)

Liebe Grüsse

Galina


Reply to: