summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index eb22061..20c96ff 100644
--- a/main.c
+++ b/main.c
@@ -27,6 +27,11 @@ int main(int argc, char **argv) {
options_parse(argc, argv, &options);
+ if(options.kill == TRUE) {
+ daemon_kill();
+ return 0;
+ }
+
if(options.daemonize == TRUE) {
daemonize();
}