aboutsummaryrefslogtreecommitdiff
path: root/install-systemd.bash
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--install-systemd.bash18
1 files changed, 18 insertions, 0 deletions
diff --git a/install-systemd.bash b/install-systemd.bash
new file mode 100644
index 0000000..546dba3
--- /dev/null
+++ b/install-systemd.bash
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+sudo cp -r ./src/Watcher /usr/share/
+mkdir -p ~/.local/bin/
+cp -r ./src/bin/watcher ~/.local/bin/
+sudo chmod +x ~/.local/bin/watcher
+
+# enabling systemd service
+mkdir -p ~/.config/systemd/
+mkdir -p ~/.config/systemd/user/
+cp -r ./src/service/watcher.service ~/.config/systemd/user/
+systemctl --user enable --now watcher.service
+
+# making directory for log-files (where all you daily logs are stored)
+mkdir -p ~/.cache/Watcher/
+mkdir -p ~/.cache/Watcher/raw_data/
+mkdir -p ~/.cache/Watcher/Analysis/
+