Answer the question
In order to leave comments, you need to log in
How to start a service with pyenv loading in linux?
If I write lines in interactive mode:
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
pyenv activate nyaa
cd /home/nyaa
python run.py
ExecStart=/bin/sh -c 'export PATH="$HOME/.pyenv/bin:$PATH" && eval "$(/root/.pyenv/bin/pyenv init -)" && eval "$(/root/.pyenv/bin/pyenv virtualenv-init -)" && /root/.pyenv/bin/pyenv activate nyaa && cd /home/nyaa && python run.py'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question