notify : Bool -> String -> IO (Maybe ()) Notify systemd about an event
After notifying systemd the Bool parameter specify if the environment
shall be unset (Further call to notify will fail).
The String is the event to pass.
Returns Nothing if the program was not started with systemd
or the environment was previously unset.
Visibility: exportnotifyWithFD : Bool -> String -> Socket AF_UNIX -> IO (Maybe ()) Same as `notify` but send along a socket to be stored.
It is up to the caller to properly set the message
(i.e: do not forget to set FDSTORE=1).
Visibility: exportnotifyWatchdog : IO (Maybe ()) Notify the watchdog that the program is still alive.
Visibility: exportnotifyReady : IO (Maybe ()) Notify the systemd that the program is ready.
Visibility: exportnotifyPID : Int -> IO (Maybe ()) Notify systemd of the PID of the program (for after a fork).
Visibility: exportnotifyReloading : IO (Maybe ()) Notify systemd that the service is reloading its configuration.
Visibility: exportnotifyStopping : IO (Maybe ()) Notify systemd that the service is beginning its shutdown.
Visibility: exportnotifyErrno : Errno -> IO (Maybe ()) Notify systemd of an 'Errno' error.
Visibility: exportnotifyStatus : String -> IO (Maybe ()) Notify systemd of the status of the program.
An arbitrary String can be passed.
Visibility: exportnotifyBusError : String -> IO (Maybe ()) Notify systemd of a DBUS error like.
Correct formatting of the String is left to the caller.
Visibility: exportstoreFd : Socket AF_UNIX -> IO (Maybe ()) Notify systemd to store a socket for us.
To be used along `getActivatedSockets` during a restart.
Useful for zero downtime restart.
Visibility: exportstoreFdWithName : Socket AF_UNIX -> String -> IO (Maybe ()) Notify systemd to store a socket for us and specify a name.
To be used along `getActivatedSocketsWithNames` during a restart.
Useful for zero downtime restart.
Visibility: exportgetActivatedSockets : IO (Maybe (List (Socket AF_UNIX))) Return a list of activated sockets, if the program was started with
socket activation.
The sockets are in the same order as in the associated .socket file.
The sockets will have their family, type, and status set appropriately.
Returns Nothing in systems without socket activation (or
when the program was not socket activated).
Visibility: exportgetActivatedSocketsWithNames : IO (Maybe (List (Socket AF_UNIX, String))) Same as `getActivatedSockets` but return also the names associated
with those sockets if `storeFdWithName` was used or specified in the .socket file.
If `storeFd` was used to transmit the socket to systemd, the name will be a generic one
(i.e: usally "stored").
Visibility: export