Semi-ATE / spyder-remote

Plugin for spyder (>=5) that adds remote capabilities to spyder.
https://semi-ate.github.io/spyder-remote/
MIT License
4 stars 4 forks source link

enable systemd #21

Open nerohmot opened 4 years ago

nerohmot commented 4 years ago

Tasks

Whenever a system starts, spyder-remote-server should be started by system.d

so I presume there must be a spyder-remote-server.service file in /etc/systemd/system/

not sure how you make it so that the used environment is base ... something like

conda run -n base spyder-remote-server

... or setting the PATH variable ? (smells like a hack)

be sure to test that we can do:

sudo systemctl stop spyder-remote-server sudo systemctl start spyder-remote-server sudo systemctl restart spyder-remote-server

by hand

Anyway, this means that spyder-remote-server is running as root (so it has access to /var/log) spyder-remote-server#20

goanpeca commented 4 years ago

@nerohmot conda run is broken in general, so we are all better off not using it :) .

... or setting the PATH variable ? (smells like a hack)

Yes, indeed.


We need to properly activate whatever we are running so we might need two scripts here or use something like

eval "$(conda shell.bash hook)"