Fix systemd service keys
parent
e2e16850a3
commit
0b3a4b1695
|
@ -176,6 +176,9 @@ if __name__ == "__main__":
|
|||
if args.room is None:
|
||||
print("Require --room argument")
|
||||
# Announce
|
||||
for room_id in self.room_ids:
|
||||
self.client.api.send_message(room_id, u"m.message.lightrix", {"pattern": pattern, "from_msg": msg})
|
||||
# Announce
|
||||
for room_id in self.room_ids:
|
||||
self.client.api.send_message(room_id, u"m.message.lightrix", {"pattern": pattern, "from_msg": msg})
|
||||
sys.exit(1)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[Unit]
|
||||
Name=Control an Adafruit Neopixel from Matrix.org
|
||||
Description=Control an Adafruit Neopixel from Matrix.org
|
||||
Requires=network.target
|
||||
|
||||
[Install]
|
||||
|
@ -8,4 +8,4 @@ WantedBy=default.target
|
|||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/python /root/lightrix.py --room '{{lightrix_room_id}}' -c /root/.mcatrc
|
||||
Restart=on-abnormal
|
||||
Restart=on-failure
|
||||
|
|
Loading…
Reference in New Issue