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