Copyright | (c) Amy de Buitléir 2012-2014 |
---|---|
License | BSD-style |
Maintainer | amy@nualeargais.ie |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
Provides a UNIX daemon to run an experiment using the Créatúr framework.
- data Daemon s = Daemon {
- onStartup :: s -> IO s
- onShutdown :: s -> IO ()
- onException :: s -> SomeException -> IO s
- task :: StateT s IO ()
- username :: String
- sleepTime :: Int
- launch :: Daemon s -> s -> IO ()
- requestShutdown :: IO ()
Documentation
Daemon configuration.
If username
is null, the daemon will run under the login name.
Daemon | |
|
launch :: Daemon s -> s -> IO () Source
creates a daemon running under the current
user's real userID, which invokes launch
daemon statetask
.
requestShutdown :: IO () Source