mosquitto_ex: mosq_sub_cmd.service

File mosq_sub_cmd.service, 527 bytes (added by krit, 12 days ago)
Line 
1[Unit]
2Description=Python Mosquitto_sub waiting for command
3After=network.target
4
5[Service]
6ExecStart=/usr/bin/python3 /home/krit/OpenWRT/mosq_sub_cmd_v1.py
7WorkingDirectory=/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
10Restart=always
11RestartSec=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]
18WantedBy=multi-user.target