init script problem

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

 



On Mon, Sep 27, 2010 at 10:29:31PM +0200, Marcus Bointon wrote:
> pidofproc uses the full path to the binary to ensure it's looking at the right one, however, since gluster server and client use the same binary (glusterfs is a symlink to glusterfsd), if it's running a client but not a server, it will erroneously return the pid of the client, report that a server instance is already running (though fail to find a pid), and thus prevent the server from starting. Looking at the docs for pidofproc, it's supposed to fail to return a pid if it doesn't find a pid file, however it wasn't in this case.
Try to replace that symbolic link with hard link.
Krzysztof


[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux