asapach / peerflix-server

Streaming torrent client for Node.js with web ui.
MIT License
1.31k stars 586 forks source link

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

Open n00b12345 opened 6 years ago

n00b12345 commented 6 years ago

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

Big fan of peerflix.

asapach commented 6 years ago

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.

TheNightmanCodeth commented 6 years ago

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 commented 4 years ago

just use

screen peerflix-server