]> gitweb.michael.orlitzky.com - dead/htsn.git/blob - src/ExitCodes.hs
Add a bunch of new options allowing htsn to daemonize.
[dead/htsn.git] / src / ExitCodes.hs
1 -- |All exit codes that the program can return (excepting
2 -- ExitSuccess). There's only one, since the program will try and fail
3 -- forever upon errors.
4 module ExitCodes (
5 exit_no_feed_hosts,
6 exit_no_password,
7 exit_no_username,
8 exit_pidfile_exists )
9 where
10
11 -- | No feed hosts were given on the command line or in the config file.
12 exit_no_feed_hosts :: Int
13 exit_no_feed_hosts = 1
14
15 -- | No password was given on the command line or in the config file.
16 exit_no_password :: Int
17 exit_no_password = 2
18
19 -- | No username was given on the command line or in the config file.
20 exit_no_username :: Int
21 exit_no_username = 3
22
23 -- | When running as a daemon, the existence of a fixed PID file is
24 -- used to determine whether or not the daemon is already
25 -- running. If the PID file already exists, we shouldn't start.
26 exit_pidfile_exists :: Int
27 exit_pidfile_exists = 4