Skip to content
Socket activation and other systemd integration for the Warp web server (WAI)
Haskell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Network/Wai/Handler/Warp
.gitignore
CHANGELOG.md
LICENSE
README.md
Setup.hs
warp-systemd.cabal

README.md

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)
You can’t perform that action at this time.