From 14dcd3452b5033dea83cf12f117cf9fff7f9beb7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 11 Oct 2024 23:35:51 -0500 Subject: [PATCH] add a helper to the debian package Signed-off-by: Jeff Carr --- Makefile.help | 18 ++++++++++++++++++ build | 3 +++ 2 files changed, 21 insertions(+) create mode 100644 Makefile.help diff --git a/Makefile.help b/Makefile.help new file mode 100644 index 0000000..8fc9831 --- /dev/null +++ b/Makefile.help @@ -0,0 +1,18 @@ +all: + @echo "make log # watch the virtigo daemon log" + @echo "make status # show the systemd status of virtigod" + @echo "make restart # restart virtigod" + @echo "make enable # enable virtigod on boot" + +log: + @journalctl -f -xeu virtigod.service + +status: + systemctl status virtigod.service + +enable: + systemctl enable virtigod.service + +restart: + systemctl stop virtigod.service + systemctl start virtigod.service diff --git a/build b/build index fc9df55..c6e7f06 100755 --- a/build +++ b/build @@ -3,3 +3,6 @@ # this is the systemd control file mkdir -p files/lib/systemd/system/ cp virtigod.service files/lib/systemd/system/ + +mkdir -p files/usr/lib/virtigod/ +cp Makefile.help files/usr/lib/virtigod/Makefile