Popularity
7.0
Stable
Activity
4.6
-
20
6
2

Monthly Downloads: 12
Programming language: Haskell
License: GNU General Public License v3.0 or later
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)