configuration.nix: auto restart script on crash
This commit is contained in:
parent
4bd5f738e7
commit
d3b5bfd6cf
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@
|
|||
systemd.services.mixer-mqtt = {
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.python3.withPackages (p: with p; [ paho-mqtt mido ])}/bin/python3 /root/mixer-rpc/mqtt_client.py 172.23.42.20 172.23.42.25";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
Environment = "PYTHONUNBUFFERED=1";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue