Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup script #450

Open
Ivanvaagenes opened this issue Mar 20, 2024 · 4 comments
Open

Startup script #450

Ivanvaagenes opened this issue Mar 20, 2024 · 4 comments

Comments

@Ivanvaagenes
Copy link

Hi.

Have anyone made a startup script for rtsptoweb and want to share it
I'l need a script so rtsptoweb start when server starts.

Tanks
Ivan

@HDTS1
Copy link

HDTS1 commented Mar 24, 2024

docker-compose isn't enough for you? Thats what makes it start for me on boot

@Ivanvaagenes
Copy link
Author

Have never used docker-compose :-) But tanks for the answer

@ctw2100
Copy link

ctw2100 commented Oct 28, 2024

I am using Linux Services for start the rtsptoweb when the server starts. This is my services configure

[Unit]
Description=RTSP to Web Service
After=network.target

[Service]
WorkingDirectory=/home/pi/RTSPtoWeb
ExecStart=go run RTSPtoWeb.go apiHTTPRouter.go hlsFragment.go storageClient.go storageStreamHLS.go apiHTTPChannel.go  apiHTTPSaveMP4.go  hlsMuxer.go     storageConfig.go         storageStruct.go apiHTTPHLS.go      apiHTTPServer.go   hlsSegment.go   storageServer.go         streamCore.go apiHTTPHLSLL.go    apiHTTPStream.go   loggingLog.go   storageStream.go         streamRemoteAuthorization.go apiHTTPMSE.go      apiHTTPWebRTC.go   serverRTSP.go   storageStreamChannel.go  supportFunc.go
Environment="GO111MODULE=on"
User=pi
Group=pi

[Install]
WantedBy=multi-user.target

@Ivanvaagenes
Copy link
Author

I am using Linux Services for start the rtsptoweb when the server starts. This is my services configure

[Unit]
Description=RTSP to Web Service
After=network.target

[Service]
WorkingDirectory=/home/pi/RTSPtoWeb
ExecStart=go run RTSPtoWeb.go apiHTTPRouter.go hlsFragment.go storageClient.go storageStreamHLS.go apiHTTPChannel.go  apiHTTPSaveMP4.go  hlsMuxer.go     storageConfig.go         storageStruct.go apiHTTPHLS.go      apiHTTPServer.go   hlsSegment.go   storageServer.go         streamCore.go apiHTTPHLSLL.go    apiHTTPStream.go   loggingLog.go   storageStream.go         streamRemoteAuthorization.go apiHTTPMSE.go      apiHTTPWebRTC.go   serverRTSP.go   storageStreamChannel.go  supportFunc.go
Environment="GO111MODULE=on"
User=pi
Group=pi

[Install]
WantedBy=multi-user.target

Hi. Tanks for this 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants