diff --git a/etc/systemd/system/pymaster.service b/etc/systemd/system/pymaster.service index fb4030f..db56c1e 100644 --- a/etc/systemd/system/pymaster.service +++ b/etc/systemd/system/pymaster.service @@ -9,8 +9,9 @@ User=master Group=master WorkingDirectory=/home/master/pymaster/ ExecStart=/home/master/pymaster/pymaster.py -i $PYMASTER_IP -p $PYMASTER_PORT +StandardOutput=file:/home/master/pymaster-debug.log +StandardError=file:/home/master/pymaster-error.log Restart=on-failure [Install] WantedBy=multi-user.target -