Skip to content

You can use this systemd script to run nvidia digits as services

Notifications You must be signed in to change notification settings

lesterlo/Nvidia-digits-systemd-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nvidia-digits-systemd-services

Table of Contents

Tested Environment

OS: Ubuntu Server 16.04.1

Description

You can use this systemd script to run nvidia digits as services

Tensorflow support

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 $@

Installation

Auto Install

  1. Run the script
sudo ./install.sh

Manual Install

  1. Copy nv-digits.service to /lib/systemd/system
sudo cp nv-digits.service /lib/systemd/system
  1. Enable the service
sudo systemctl enable nv-digits.service   #Enable the server at startup
  1. 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

Reference:

https://github.com/NVIDIA/DIGITS/blob/master/packaging/deb/templates/digits.service

About

You can use this systemd script to run nvidia digits as services

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages