]> gitweb.michael.orlitzky.com - dead/halcyon.git/blob - src/ExitCodes.hs
Add a farewell TODO list.
[dead/halcyon.git] / src / ExitCodes.hs
1 -- | All exit codes that the program can return (excepting
2 -- ExitSuccess).
3 module ExitCodes (
4 exit_no_usernames,
5 exit_pidfile_exists )
6 where
7
8
9 -- | No usernames found on either the command-line or in a config
10 -- file.
11 exit_no_usernames :: Int
12 exit_no_usernames = 1
13
14
15 -- | When running as a daemon, the existence of a fixed PID file is
16 -- used to determine whether or not the daemon is already
17 -- running. If the PID file already exists, we shouldn't start.
18 --
19 exit_pidfile_exists :: Int
20 exit_pidfile_exists = 2