* [gentoo-dev] detecting if a file is used or not
@ 2008-01-24 9:16 Alin Năstac
2008-01-24 10:20 ` Petteri Räty
0 siblings, 1 reply; 2+ messages in thread
From: Alin Năstac @ 2008-01-24 9:16 UTC (permalink / raw
To: Gentoo Dev
[-- Attachment #1: Type: text/plain, Size: 252 bytes --]
How could I detect in a init script if a socket file is used or not? I
need to be sure I can delete it before starting the service.
I would hate to add sys-process/psmisc to RDEPEND just for this (fuser
seems to be the only way of doing that).
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-dev] detecting if a file is used or not
2008-01-24 9:16 [gentoo-dev] detecting if a file is used or not Alin Năstac
@ 2008-01-24 10:20 ` Petteri Räty
0 siblings, 0 replies; 2+ messages in thread
From: Petteri Räty @ 2008-01-24 10:20 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 473 bytes --]
Alin Năstac kirjoitti:
> How could I detect in a init script if a socket file is used or not? I
> need to be sure I can delete it before starting the service.
>
> I would hate to add sys-process/psmisc to RDEPEND just for this (fuser
> seems to be the only way of doing that).
>
betelgeuse@pena /usr/portage/profiles $ grep sys-process/psmisc -r base
base/packages:*sys-process/psmisc
fuse is used by baselayout too so just use that
Regards,
Petteri
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-24 10:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-24 9:16 [gentoo-dev] detecting if a file is used or not Alin Năstac
2008-01-24 10:20 ` Petteri Räty
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox