quickfix
This commit is contained in:
parent
c3aabf6f5a
commit
d4bf2b7cf6
|
@ -16,12 +16,12 @@ namespace repomgr
|
||||||
|
|
||||||
public static void Main(string[] args)
|
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");
|
Console.WriteLine("/tmp/repomgr.lock exists, delete if you are sure that this is the only instance");
|
||||||
Environment.Exit(1);
|
Environment.Exit(1);
|
||||||
}
|
}
|
||||||
else
|
else if (args[1] != "daemon")
|
||||||
{
|
{
|
||||||
File.Create("/tmp/repomgr.lock");
|
File.Create("/tmp/repomgr.lock");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue