[Unit] Description=Phone script service After=network.target [Service] ExecStart=/usr/bin/python -u rotaryPhoneStateMachine.py WorkingDirectory=/home/pi StandardOutput=inherit StandardError=inherit Restart=always User=pi [Install] WantedBy=multi-user.target