Popularity
6.9
Stable
Activity
4.6
Stable
20
6
2

Monthly Downloads: 15
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)