1 | [Unit] |
---|
2 | Description=Python Mosquitto_sub waiting for command |
---|
3 | After=network.target |
---|
4 | |
---|
5 | [Service] |
---|
6 | ExecStart=/usr/bin/python3 /home/krit/OpenWRT/mosq_sub_cmd_v1.py |
---|
7 | WorkingDirectory=/home/krit/OpenWRT |
---|
8 | #User=krit # Change this to the user under which the script should run |
---|
9 | #Group=krit # Change this to the group of the user |
---|
10 | Restart=always |
---|
11 | RestartSec=3 |
---|
12 | #StandardOutput=journal |
---|
13 | #StandardError=journal |
---|
14 | #StandardOutput=file:/home/krit/my_script.log |
---|
15 | #StandardError=file:/home/krit/my_script_error.log |
---|
16 | |
---|
17 | [Install] |
---|
18 | WantedBy=multi-user.target |
---|