This commit is contained in:
Laura Hausmann 2019-10-10 13:22:58 +02:00
parent c3aabf6f5a
commit d4bf2b7cf6
1 changed files with 2 additions and 2 deletions

View File

@ -16,12 +16,12 @@ namespace repomgr
public static void Main(string[] args)
{
if (File.Exists("/tmp/repomgr.lock"))
if (File.Exists("/tmp/repomgr.lock") && args[1] != "daemon")
{
Console.WriteLine("/tmp/repomgr.lock exists, delete if you are sure that this is the only instance");
Environment.Exit(1);
}
else
else if (args[1] != "daemon")
{
File.Create("/tmp/repomgr.lock");
}