summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.help18
-rwxr-xr-xbuild3
2 files changed, 21 insertions, 0 deletions
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