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

How can I start peerflix-server at startup using forever? #141

Open
n00b12345 opened this issue Apr 10, 2018 · 3 comments
Open

How can I start peerflix-server at startup using forever? #141

n00b12345 opened this issue Apr 10, 2018 · 3 comments
Labels

Comments

@n00b12345
Copy link

n00b12345 commented Apr 10, 2018

Or even a script? Forever fails when called from crontab.

Big fan of peerflix.

@asapach
Copy link
Owner

asapach commented Apr 10, 2018

I haven't tried it in a while, but here's a config that worked for me a couple of years ago: #10 (comment)
Not sure if it will still work in the modern linux distros based on systemd.

@TheNightmanCodeth
Copy link

I would love to see an implementation of some config scripts for systemd and openrc. I tried an OpenRC version the other day but no go. It looked like this maybe someone could give me some help??

#!/usr/bin/openrc-run
name="peerflix-server"
start() {
ebegin "Starting Peerflix Server"
/usr/bin/forever start $(which peerflix-server)
}
stop() {
ebegin "Stopping Peerflix Server"
/usr/bin/forever stop $(which peerflix-server)
}

@besoeasy
Copy link

just use

screen peerflix-server

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

No branches or pull requests

4 participants