![]() ├─3671 /usr/bin/python /usr/bin/ipython notebook -no-browser -pylab=inline Loaded: loaded (/usr/lib/systemd/system/rvice enabled)Īctive: active (running) since Sun 22:39:59 EST 23min agoĬGroup: name=systemd:/system/rvice If you check the status of the service, it should show the following: Ln -s '/usr/lib/systemd/system/rvice' '/etc/systemd/system//rvice' As the root user, reload all the systemd unit files, enable the ipython-notebook service so that it starts on boot, and then start the service: We are all set now to start IPython notebook. ![]() Next, as ipynb, create a sub-directory, notebooks: The line WorkingDirectory=/home/ipynb/notebooks specify that the notebooks will be stored/server in/from /home/ipynb/notebooks ![]() The lines, User=ipynb and Group=ipynb specify that we are going to run this process as user/group ipynb (we create them in the next step). This should be familiar to someone who uses it. The line, ExecStart=/usr/bin/ipython notebook -no-browser -pylab=inline specifies the command to start the IPython notebook server. You may find my earlier post useful which also has links to systemd resources. To completely understand the above unit file, you will need to read up a little of the topic. Note that due to the naming of our unit file, the service will run as ipython-notebook. As root user, create a new file /usr/lib/systemd/system/rvice and copy the following contents into it:ĮxecStart=/usr/bin/ipython notebook -no-browser -pylab=inline ![]() I will describe a fairly basic configuration to manage (start/stop/restart) IPython notebook server using systemd.įirst, we will create the systemd unit file. If you are using IPython notebook on a Linux distribution which uses systemd as it’s process manager (such as Fedora Linux, Arch Linux), you may find this post useful. ![]()
0 Comments
Leave a Reply. |