Release v.1.0.25270.1 #1
17
README.md
17
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
|
||||
```
|
||||
|
||||
15
install.sh
Normal file
15
install.sh
Normal file
@@ -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."
|
||||
Reference in New Issue
Block a user