diff --git a/Program.cs b/Program.cs index 9f4f91e..94d39b2 100644 --- a/Program.cs +++ b/Program.cs @@ -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"); }