summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2013-10-08 18:17:12 -0400
committerjoe <joe@jerkface.net>2013-10-08 18:17:12 -0400
commit9732dffeb1c105b8de55656c305480cbbb761a07 (patch)
tree2945a56522400c1667f54ac57943a32d00b0c65d
parent2758e4597ad5fa02272a1500581345d1339d2d79 (diff)
Disabled pid file feature to avoid obnoxious failuer to start.
-rw-r--r--Presence/main.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Presence/main.hs b/Presence/main.hs
index 784faaca..3215913b 100644
--- a/Presence/main.hs
+++ b/Presence/main.hs
@@ -856,6 +856,9 @@ getOptions (x0:xs) = getOptions xs
856main = do 856main = do
857 opts <- fmap getOptions getArgs 857 opts <- fmap getOptions getArgs
858 let use_ip4 = if isJust (Map.lookup "4" opts) then AF_INET else AF_INET6 858 let use_ip4 = if isJust (Map.lookup "4" opts) then AF_INET else AF_INET6
859 runOnce ["/var/run/presence.pid","/tmp/presence.pid"] (start use_ip4) sendUSR1 859 -- Disabled because of failing to start after a crash:
860 -- -- This code sends USR1 to a running instance to trigger rescan of utmp file.
861 -- runOnce ["/var/run/presence.pid","/tmp/presence.pid"] (start use_ip4) sendUSR1
862 start use_ip4
860 863
861 864