[GH-ISSUE #127] Running Multiple instances of peerflix-server #105

Closed
opened 2026-02-25 20:32:26 +03:00 by kerem · 2 comments
Owner

Originally created by @pavs on GitHub (Dec 6, 2017).
Original GitHub issue: https://github.com/asapach/peerflix-server/issues/127

I want to run multiple instances of peerflix-server with it's own config file (ie, peerflix-server -config2.json)
More specifically in regards to storing downloaded torrents location.

Is it possible?

Originally created by @pavs on GitHub (Dec 6, 2017). Original GitHub issue: https://github.com/asapach/peerflix-server/issues/127 I want to run multiple instances of peerflix-server with it's own config file (ie, peerflix-server -config2.json) More specifically in regards to storing downloaded torrents location. Is it possible?
kerem 2026-02-25 20:32:26 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@asapach commented on GitHub (Dec 6, 2017):

I think you can run multiple instances if you specify a different HOME env for each one:

HOME=/tmp/1 peerflix-server
HOME=/tmp/2 peerflix-server

And something similar using USERPROFILE env on Windows.

<!-- gh-comment-id:349601169 --> @asapach commented on GitHub (Dec 6, 2017): I think you can run multiple instances if you specify a different `HOME` env for each one: ```bash HOME=/tmp/1 peerflix-server HOME=/tmp/2 peerflix-server ``` And something similar using `USERPROFILE` env on Windows.
Author
Owner

@zQueal commented on GitHub (Jan 11, 2018):

I've also confirmed this working with multiple unix users. Peerflix-server searches ~/.config/peerflix-server for the configuration files. So a new user is able to spawn its own instance by specifying a new port;

user1@host ~ # PORT=9000 peerflix-server &
user1@host ~ # su user2
user2@host ~ # PORT=9001 peerflix-server &
<!-- gh-comment-id:356882016 --> @zQueal commented on GitHub (Jan 11, 2018): I've also confirmed this working with multiple unix users. Peerflix-server searches `~/.config/peerflix-server` for the configuration files. So a new user is able to spawn its own instance by specifying a new port; user1@host ~ # PORT=9000 peerflix-server & user1@host ~ # su user2 user2@host ~ # PORT=9001 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#105
No description provided.