Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Systemd integration for the Warp web server (WAI).

Features

Usage

By default all systemd integrations are off. Tweak SystemdSettings to enable watchdog for example:

import Data.Function                                 ((&))
import qualified Network.Wai.Handler.Warp         as Warp
import qualified Network.Wai.Handler.Warp.Systemd as Systemd

myWaiApp = ...

main :: IO ()
main = do
  Systemd.runSystemdWarp systemdSettings Warp.defaultSettings myWaiApp
  where
    systemdSettings = Systemd.SystemdSettings
      & setHeartbeatInterval (Just 3)

About

Socket activation and other systemd integration for the Warp web server (WAI)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published