[Discuss] How does dpkg...
brendan
brendan at ming.org
Mon Feb 17 11:01:16 PST 2014
it's probably a lock file, but to check, just get dpkg process to lock
things and while it is active strace another dpkg process to see what
it's calling to check the lock file.
On 14-02-15 04:11 PM, Patrick wrote:
> ...Get an exclusive lock on /var/lib/dpkg/lock ?
>
> That backup script will wait, if it sees any package management
> type stuff going on, instead of trying to back-up the system
> *while* the system is being modified. You can see how doing
> otherwise could get ugly, yes?
>
> I'd like the script to also get an exclusive lock on the file
> when its turn comes around, in a way that dpkg will recognize
> [flock didn't work], then release said lock when finished.
>
>
>
> Thanks,
>
> Patrick.
More information about the Discuss
mailing list