summaryrefslogtreecommitdiff
path: root/srcx
diff options
context:
space:
mode:
Diffstat (limited to 'srcx')
-rw-r--r--srcx/Makefile.am10
-rw-r--r--srcx/jkill.c2
2 files changed, 11 insertions, 1 deletions
diff --git a/srcx/Makefile.am b/srcx/Makefile.am
index 3011de8..c0930a4 100644
--- a/srcx/Makefile.am
+++ b/srcx/Makefile.am
@@ -7,6 +7,16 @@ jails_SOURCES = jails.c util.h util.c
jid_SOURCES = jid.c util.h util.c
jps_SOURCES = jps.c util.h util.c
+install-exec-hook:
+ ln -f $(DESTDIR)$(sbindir)/jkill$(EXEEXT) \
+ $(DESTDIR)$(sbindir)/killjail$(EXEEXT)
+
+# Uninstall hook doesn't work :(
+# uninstall-hook:
+uninstall-local:
+ rm -f $(DESTDIR)$(sbindir)/killjail$(EXEEXT)
+
man_MANS = jstart.8 jkill.8 jails.8 jid.8 jps.8
EXTRA_DIST = $(man_MANS)
+
diff --git a/srcx/jkill.c b/srcx/jkill.c
index 3d30c48..c06c4b1 100644
--- a/srcx/jkill.c
+++ b/srcx/jkill.c
@@ -318,7 +318,7 @@ static int check_running_processes(kvm_t* kd)
static void usage()
{
fprintf(stderr, "usage: jkill [-fkqv] [-t timeout] jail ...\n");
- fprintf(stderr, "usage: jkill -r [-fqv] [-t timeout] jail ...\n");
+ fprintf(stderr, " jkill -r [-fqv] [-t timeout] jail ...\n");
exit(2);
}