Copyright | (c) 2012-2021 Amy de Buitléir |
---|---|
License | BSD-style |
Maintainer | amy@nualeargais.ie |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Provides a UNIX daemon to run an experiment using the Créatúr framework.
Synopsis
- 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 {
- daemon :: CreateDaemon p
- job :: Job s
- 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 #
CreaturDaemon | |
|
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 #