Added systemd unit file
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user