packages feed

hdaemonize 0.5.0.0 → 0.5.0.1

raw patch · 3 files changed

+20/−11 lines, 3 filesnew-uploaderPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

README view
@@ -1,4 +1,4 @@-`hdaemonize-0.5.0`+`hdaemonize-0.4.3` =================  `hdaemonize` is a simple library that hides some of the complexities@@ -8,7 +8,7 @@ -----------  The latest version is available (BSD license) at-[GitHub](https://github.com/madhadron/hdaemonize).+[GitHub](https://github.com/greydot/hdaemonize).  Using -------@@ -66,10 +66,6 @@  Changelog -----------* 0.5-    * added support for hsyslog 2.0-    * add configurable time between SIGTERM and SIGKILL when shutting down  * 0.4     * added support for a privileged action before dropping privileges
System/Posix/Daemonize.hs view
@@ -178,8 +178,21 @@        process daemon ["restart"] = do process daemon ["stop"]                                       process daemon ["start"]-      process _      _ = -        getProgName >>= \pname -> putStrLn $ "usage: " ++ pname ++ " {start|stop|restart}"++      process daemon ["status"] = pidExists daemon >>= f where+        f True =+          do pid <- pidRead daemon+             case pid of+               Nothing -> putStrLn $ (fromJust $ name daemon) ++ " is not running."+               Just pid ->+                 do res <- pidLive pid+                    if res then+                      do putStrLn $ (fromJust $ name daemon) ++ " is running."+                         else putStrLn $ (fromJust $ name daemon) ++ " is not running, but pidfile is remaining."+        f False = putStrLn $ (fromJust $ name daemon) ++ " is not running."++      process _      _ =+        getProgName >>= \pname -> putStrLn $ "usage: " ++ pname ++ " {start|stop|status|restart}"        -- Wait 'secs' seconds for the process to exit, checking       -- for liveness once a second.  If still alive send sigKILL.
hdaemonize.cabal view
@@ -1,11 +1,11 @@ Name:		hdaemonize-Version:	0.5.0.0+Version:	0.5.0.1 Cabal-Version:  >= 1.6 License:	BSD3 License-file:   LICENSE Author:         Anton Tayanovskyy, Fred Ross-Maintainer:     Fred Ross <madhadron at gmail dot com>-Homepage:       http://github.com/madhadron/hdaemonize+Maintainer:     Lana Black <lanablack at amok dot cc>+Homepage:       http://github.com/greydot/hdaemonize Category:	System Synopsis:       Library to handle the details of writing daemons for UNIX Description:	Provides two functions that help writing better UNIX daemons,