Copyright | (c) Amy de Buitléir 2012-2015 |
---|---|
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 Job s = Job {
- onStartup :: s -> IO s
- onShutdown :: s -> IO ()
- onException :: s -> SomeException -> IO s
- task :: StateT s IO ()
- sleepTime :: Int
- data CreaturDaemon p s = CreaturDaemon {}
- simpleDaemon :: Job s -> s -> CreateDaemon ()
- launch :: CreaturDaemon p s -> IO ()
- launchInteractive :: Job s -> s -> IO ()
- requestShutdown :: IO ()
Documentation
The work to be performed by a daemon.
Job | |
|
data CreaturDaemon p s Source
simpleDaemon :: Job s -> s -> CreateDaemon () Source
Creates a simple daemon to run a job. The daemon will run under the login name.
launch :: CreaturDaemon p s -> IO () Source
launchInteractive :: Job s -> s -> IO () Source
requestShutdown :: IO () Source