Popularity
7.1
Growing
Activity
3.1
-
20
5
2

Monthly Downloads: 16
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Web     Warp    
Latest version: v0.1.1.0
Add another 'warp' Package

README

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)