2
.\" hal-lock manual page.
3
.\" Copyright (C) 2007 David Zeuthen <david@fubar.dk>
7
hal-lock \- lock an interface
15
\fIhal-lock\fP can be used to acquire a lock on a given interface
16
either on a given device or globally. For more information about both
17
the big picture and the semantics of
19
locks, refer to the \fIHAL spec\fP which can be found in
20
.I "/usr/share/doc/hal-0.5.9/spec/hal-spec.html"
21
depending on the distribution.
24
The following options are supported:
27
The name of the interface to lock.
30
Program to run if the lock was acquired.
33
The UDI (\fIUnique Device Identifier\fP) of the device object. If this
34
is ommitted, the global lock will be tried.
37
Whether the lock can be held by others.
40
Kill the program if the acquired lock is lost. This only makes sense if you pass a specific
42
due to the semantics of HAL locks.
45
Kill the program if the device is removed. This only makes sense if you pass a specific
47
due to the semantics of HAL locks.
57
This program will attempt to grab a lock on a given interface.
60
is given, the global lock will be tried. If the lock was succesfully
61
acquired the program specified by the option --run will be run and
62
upon termination this program will exit with exit code 0. If the lock
63
wasn't acquired or an error occured while taking the lock, this
64
program will exit with a non-zero exit code and the given program will
70
This program is only useful for launching software that doesn't use
71
HAL at all (since such software launched using
73
would be locked out itself); for example a partition table editor
75
may use wrapper script like this
77
.I hal-lock --interface org.freedesktop.Hal.Device.Storage --exclusive --run /path/to/part-foo-program
81
Please send bug reports to either the distribution or the HAL
83
.I "http://lists.freedesktop.org/mailman/listinfo/hal"
90
\&\fIhal-get-property\fR\|(1),
91
\&\fIhal-set-property\fR\|(1),
92
\&\fIhal-find-by-property\fR\|(1),
93
\&\fIhal-find-by-capability\fR\|(1)
96
Written by David Zeuthen <david@fubar.dk> with a lot of help from many