/usr/share/doc/libghc-graceful-doc/html/graceful.txt is in libghc-graceful-doc 0.1.1.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | -- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Library to write graceful shutdown / upgrade service.
--
-- Library to write graceful shutdown / upgrade service.
@package graceful
@version 0.1.1.3
-- | Provides function to make process graceful.
module System.Posix.Graceful
-- | Server settings
--
-- Since 0.1.0.0
data GracefulSettings
GracefulSettings :: IO Socket -> Int -> FilePath -> FilePath -> FilePath -> GracefulSettings
-- | Listen socket
gracefulSettingsListen :: GracefulSettings -> IO Socket
-- | Prefork worker count
gracefulSettingsWorkerCount :: GracefulSettings -> Int
-- | Unix domain socket file
gracefulSettingsSockFile :: GracefulSettings -> FilePath
-- | The file to which the server records the process id
gracefulSettingsPidFile :: GracefulSettings -> FilePath
-- | The binary file to upgrade
gracefulSettingsBinary :: GracefulSettings -> FilePath
-- | Worker process settings
--
-- Since 0.1.0.0
data GracefulWorker
GracefulWorker :: IO resource -> (Socket -> resource -> IO ()) -> (resource -> IO ()) -> GracefulWorker
gracefulWorkerInitialize :: GracefulWorker -> IO resource
gracefulWorkerApplication :: GracefulWorker -> Socket -> resource -> IO ()
gracefulWorkerFinalize :: GracefulWorker -> resource -> IO ()
-- | Make server application enable shutdown/restart gracefully
--
-- Since 0.1.0.0
graceful :: GracefulSettings -> GracefulWorker -> IO ()
|