OS: Ubuntu Server 16.04.1
You can use this systemd script to run nvidia digits as services
Modify the digits-devserver script and add the cuda path to solve the import tensorflow problem
#add cuda path
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
set -e
python2 -m digits $@
- Run the script
sudo ./install.sh
- Copy nv-digits.service to /lib/systemd/system
sudo cp nv-digits.service /lib/systemd/system
- Enable the service
sudo systemctl enable nv-digits.service #Enable the server at startup
- Reload the systemd
sudo systemctl daemon-reload #Reload the systemd daemon
After that, Nvidia DIGITS will run at startup
- You can start, stop, restart the Nvidia DIGITS Manually by using the following command
sudo systemctl start nv-digits.service #Start the DIGITS Server
sudo systemctl stop nv-digits.service #Stop the DIGITS Server
sudo systemctl restart nv-digits.service# #Restart the DIGITS Server
- You can view the status and console output by using the following command
sudo systemctl stauts nv-digits.service #View Status
- You can disable the Nvidia DIGITS service by using the following command
sudo systemctl disable nv-digits.service #Don't execute the server at startup
sudo systemctl stop nv-digits.service #Stop the DIGITS Server
https://github.com/NVIDIA/DIGITS/blob/master/packaging/deb/templates/digits.service