I didn't check all the parameters for the ipython notebbok, but there should be one that let's you specify your home. I tried to do it with systemd also, and this is what I came up with.Ĭreate the file: /etc/systemd/system/rvice.ĮxecStart=/usr/local/bin/ipython notebook -ip 0.0.0.0 -port 8080 Stdout_logfile = /var/log/supervisord/ipython_notebook-stdout.log Stderr_logfile = /var/log/supervisord/ipython_notebook-stderr.log Ĭommand=/usr/local/bin/ipython notebook -ip 0.0.0.0 -port 8080 You can even have a http interface from where you can stop or start the programs it keeps.Ī basic definition, in nf, for your program would look like the following. It has some configuration options but it's pretty straight forward. ![]() ![]() ![]() Supervisord spawns your program as it's child, and you can configure it to restart it if it dies, so you will always have the service up. I'm using jupyterhub through supervisord.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |