[Unit] Description=Run script Red5 After=syslog.target network.target [Service] Type=simple ExecStart=/opt/red5/red5.sh start ExecStop=/opt/red5/red5-shutdown.sh stop Environment=DISPLAY=:0 WorkingDirectory=/opt/red5 [Install] WantedBy=multi-user.target