X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhtsn.git;a=blobdiff_plain;f=src%2FExitCodes.hs;h=ade20bfc8bf9618eb8ef4971715fdf0a309bc525;hp=4f8cd5387cb2faceb6d85f9b3668d3eb9cfd85f5;hb=60aea8c7765bf2382b1d24d039f3951e00434e3c;hpb=4833dc57c60f4aeaa160ec5e599507653a47809b diff --git a/src/ExitCodes.hs b/src/ExitCodes.hs index 4f8cd53..ade20bf 100644 --- a/src/ExitCodes.hs +++ b/src/ExitCodes.hs @@ -1,5 +1,6 @@ -- | All exit codes that the program can return (excepting --- ExitSuccess). +-- 'ExitSuccess'). +-- module ExitCodes ( exit_no_feed_hosts, exit_no_password, @@ -8,19 +9,23 @@ module ExitCodes ( where -- | No feed hosts were given on the command line or in the config file. +-- exit_no_feed_hosts :: Int exit_no_feed_hosts = 1 -- | No password was given on the command line or in the config file. +-- exit_no_password :: Int exit_no_password = 2 -- | No username was given on the command line or in the config file. +-- exit_no_username :: Int exit_no_username = 3 -- | When running as a daemon, the existence of a fixed PID file is -- used to determine whether or not the daemon is already -- running. If the PID file already exists, we shouldn't start. +-- exit_pidfile_exists :: Int exit_pidfile_exists = 4