Added systemd unit file

This commit is contained in:
Torsten Kurbad
2017-09-07 16:53:13 +02:00
parent 3f1d2e2d60
commit 48de4faf90
3 changed files with 26 additions and 8 deletions
+6
View File
@@ -15,6 +15,12 @@ sudo emerge -NDuv pyyaml
sudo cp pyupsmon.yml.example /etc/pyupsmon.yml
```
* Edit the config to your liking using your favourite text editor
* Install the Python script
```
sudo mkdir -p /usr/local/sbin
sudo cp pyupsmon.py /usr/local/sbin/pyupsmon
sudo chmod 0755 /usr/local/sbin/pyupsmon
```
* Install the `systemd` unit file
```
sudo cp pyupsmon.service /etc/systemd/system