[Unit] Description=MJPEG relay After=network.target [Service] # Tuneliraj lokalni port 22 na streznikov port 2222 User=g1smo RemainAfterExit=yes WorkingDirectory=/home/g1smo/galerija-bot/mjpeg-relay ExecStart=python2 relay.py http://localhost:8989/stream RestartSec=5 Restart=always [Install] WantedBy=multi-user.target