From 147c7f28d53707f9dc2ea43cd6c403bc9034c5c5 Mon Sep 17 00:00:00 2001 From: Jali Date: Sat, 20 Sep 2025 22:30:00 +0200 Subject: [PATCH] Add installation scripts and documentation --- README.md | 17 +++++++++++++++++ install.sh | 15 +++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 install.sh diff --git a/README.md b/README.md index f373e74..ec61258 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,20 @@ newly updated repository to interact with a running PDP-10 simulation. The monitor consists of a script, that needs to be installed to `/usr/local/bin` and a systemd unit-file to run it as a service. + +### Installation + +To install the git-monitor, clone this repository to the target computer, and +run the install script: + +```bash +git clone https://gitea.orca-central.de/jali/PiDP10Services.git +sudo ./install.sh +``` + +This will install the service on your system and start it. If you want the +service to be enabled on system boot, enable the service: + +```bash +sudo systemctl enable git-monitor.service +``` diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..c02a8d3 --- /dev/null +++ b/install.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# Install the service on the target machine + +SERVICEDIR="/usr/local/bin" +SYSTEMDDIR="/etc/systemd/system" + +echo "- Installing the service files" +cp ./services/git-monitor $SERVICEDIR +cp ./units/git-monitor.service $SYSTEMDDIR + +echo "- Preparing the service files" +systemctl daemon-reload +systemctl start git-monitor.service + +echo "- Installation complete."