systemd 1.0.5 → 1.0.6
raw patch · 2 files changed
+13/−3 lines, 2 files
Files
- System/Systemd/Daemon.hs +10/−0
- systemd.cabal +3/−3
System/Systemd/Daemon.hs view
@@ -59,6 +59,8 @@ , notifyErrno , notifyStatus , notifyBusError+ , notifyReloading+ , notifyStopping -- * Socket activation functions , getActivatedSockets -- * Utils@@ -99,6 +101,14 @@ -- | Notify systemd of the PID of the program (for after a fork) notifyPID :: CPid -> IO (Maybe()) notifyPID pid = notify False $ "MAINPID=" ++ show pid++-- | Notify systemd that the service is reloading its configuration+notifyReloading :: IO (Maybe())+notifyReloading = notify False "RELOADING=1"++-- | Notify systemd that the service is beginning its shutdown+notifyStopping :: IO (Maybe())+notifyStopping = notify False "STOPPING=1" -- | Notify systemd of an 'Errno' error notifyErrno :: Errno -> IO (Maybe())
systemd.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: systemd-version: 1.0.5+version: 1.0.6 synopsis: Systemd facilities (Socket activation, Notify) description: A module for Systemd facilities. homepage: https://github.com/erebe/systemd@@ -36,6 +36,6 @@ type: exitcode-stdio-1.0 main-is: Main.hs default-language: Haskell2010- build-depends: base == 4.*- , systemd+ build-depends: base == 4.*,+ systemd default-language: Haskell2010