[GH-ISSUE #141] How can I start peerflix-server at startup using forever? #116

Open
opened 2026-02-25 20:32:27 +03:00 by kerem · 3 comments
Owner

Originally created by @n00b12345 on GitHub (Apr 10, 2018).
Original GitHub issue: https://github.com/asapach/peerflix-server/issues/141

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

Big fan of peerflix.

Originally created by @n00b12345 on GitHub (Apr 10, 2018). Original GitHub issue: https://github.com/asapach/peerflix-server/issues/141 Or even a script? Forever fails when called from crontab. Big fan of peerflix.
Author
Owner

@asapach commented on GitHub (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: https://github.com/asapach/peerflix-server/issues/10#issuecomment-61409423
Not sure if it will still work in the modern linux distros based on systemd.

<!-- gh-comment-id:380167000 --> @asapach commented on GitHub (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: https://github.com/asapach/peerflix-server/issues/10#issuecomment-61409423 Not sure if it will still work in the modern linux distros based on systemd.
Author
Owner

@TheNightmanCodeth commented on GitHub (Oct 5, 2018):

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)
}

<!-- gh-comment-id:427233769 --> @TheNightmanCodeth commented on GitHub (Oct 5, 2018): 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) }
Author
Owner

@besoeasy commented on GitHub (Nov 20, 2019):

just use

screen peerflix-server

<!-- gh-comment-id:555997549 --> @besoeasy commented on GitHub (Nov 20, 2019): just use screen peerflix-server
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/peerflix-server#116
No description provided.