summaryrefslogtreecommitdiff
path: root/cmd/service
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/service')
-rw-r--r--cmd/service/disable.c3
-rw-r--r--cmd/service/enable.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/cmd/service/disable.c b/cmd/service/disable.c
index 6210a8c..ffaab0a 100644
--- a/cmd/service/disable.c
+++ b/cmd/service/disable.c
@@ -4,6 +4,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
+#include <signal.h>
#include <stdio.h>
#include <errno.h>
@@ -55,6 +56,8 @@ static int cmd_disable(int argc, char **argv)
goto out;
}
+ kill(1, SIGHUP);
+
ret = EXIT_SUCCESS;
out:
free(linkname);
diff --git a/cmd/service/enable.c b/cmd/service/enable.c
index 67cf0aa..8734aec 100644
--- a/cmd/service/enable.c
+++ b/cmd/service/enable.c
@@ -4,6 +4,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
+#include <signal.h>
#include <stdio.h>
#include <errno.h>
@@ -60,6 +61,8 @@ static int cmd_enable(int argc, char **argv)
goto out;
}
+ kill(1, SIGHUP);
+
ret = EXIT_SUCCESS;
out:
free(linkname);