Mercurial > hg > orthanc-book
diff Sphinx/source/faq/debian-daemon.rst @ 0:901e8961f46e
initial commit
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 22 Apr 2016 12:57:38 +0200 |
parents | |
children | a52f1dc48ebc |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Sphinx/source/faq/debian-daemon.rst Fri Apr 22 12:57:38 2016 +0200 @@ -0,0 +1,33 @@ +.. highlight:: bash + +Installing Orthanc as a Debian/Ubuntu daemon +============================================ + +To install Orthanc as a Linux daemon on a Debian/Ubuntu system, you can: + +1. Download this `service script + <http://anonscm.debian.org/cgit/debian-med/orthanc.git/tree/debian/orthanc.init>`_ + (this file is part of the `official Debian package + <https://tracker.debian.org/pkg/orthanc>`_ of Orthanc), +2. Adapt some of its variables to reflect the configuration of your + system, +3. Copy it in ``/etc/init.d`` as root (the filename cannot contain + dot, otherwise it is not executed), make it belong to root, and tag + it as executable:: + + $ sudo mv orthanc.init /etc/init.d/orthanc + $ sudo chown root:root /etc/init.d/orthanc + $ sudo chmod 755 /etc/init.d/orthanc + +4. If you wish the daemon to be automatically launched at boot time and stopped at shutdown:: + + $ sudo update-rc.d orthanc defaults + +5. If you wish to remove the automatic launching at boot time later on:: + + $ sudo update-rc.d -f orthanc remove + +*Note*: You can use ``rcconf`` to easily monitor the services that are +run at startup:: + + $ sudo apt-get install rcconf