Mercurial > hg > orthanc-book
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:901e8961f46e |
---|---|
1 .. highlight:: bash | |
2 | |
3 Installing Orthanc as a Debian/Ubuntu daemon | |
4 ============================================ | |
5 | |
6 To install Orthanc as a Linux daemon on a Debian/Ubuntu system, you can: | |
7 | |
8 1. Download this `service script | |
9 <http://anonscm.debian.org/cgit/debian-med/orthanc.git/tree/debian/orthanc.init>`_ | |
10 (this file is part of the `official Debian package | |
11 <https://tracker.debian.org/pkg/orthanc>`_ of Orthanc), | |
12 2. Adapt some of its variables to reflect the configuration of your | |
13 system, | |
14 3. Copy it in ``/etc/init.d`` as root (the filename cannot contain | |
15 dot, otherwise it is not executed), make it belong to root, and tag | |
16 it as executable:: | |
17 | |
18 $ sudo mv orthanc.init /etc/init.d/orthanc | |
19 $ sudo chown root:root /etc/init.d/orthanc | |
20 $ sudo chmod 755 /etc/init.d/orthanc | |
21 | |
22 4. If you wish the daemon to be automatically launched at boot time and stopped at shutdown:: | |
23 | |
24 $ sudo update-rc.d orthanc defaults | |
25 | |
26 5. If you wish to remove the automatic launching at boot time later on:: | |
27 | |
28 $ sudo update-rc.d -f orthanc remove | |
29 | |
30 *Note*: You can use ``rcconf`` to easily monitor the services that are | |
31 run at startup:: | |
32 | |
33 $ sudo apt-get install rcconf |