rmayr / dvcs-autosync

dvcs-autosync is a project to create an open source replacement for Dropbox/Wuala/Box.net/etc. based on distributed version control systems (DVCS). It offers nearly instantaneous mutual updates when a file is added or changes on one side but with the added benefit of (local, distributed) versioning and does not rely on a centralized service provider.
http://www.mayrhofer.eu.org/dvcs-autosync
Other
98 stars 14 forks source link

cannot launch again if pid written in .pid file is used by another process #20

Closed dolanor closed 9 years ago

dolanor commented 11 years ago

The program thinks autosync is launched with that pid even if it is taken by another process

Dieterbe commented 11 years ago

seems pretty sane behavior? no daemon of which only one instance can run, should run if a pid file is found.

dolanor commented 11 years ago

Not if the pid is not the one of an already launched dvcs daemon. But the pid file is stale and the daemon is long gone. The computer might already have revolted, but the pid fie is still here. After a reboot, the pid might be taken by another process, and if the autosync try to launch at that time, it doesn't check if the pid is taken by a dvcs-autosync process.

Dieterbe commented 11 years ago

so the real problem is a stale pidfile. see also #1

rmayr commented 9 years ago

This should be solved when #1 is properly addressed in a cross-platform manner, therefore closing this as a duplicate.