comparison Sphinx/source/faq/debian-daemon.rst @ 284:bcbe4a9ae8aa

systemd
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 18 Sep 2019 09:45:37 +0200
parents 3391edf37359
children 76db4223f495
comparison
equal deleted inserted replaced
283:443af82172b0 284:bcbe4a9ae8aa
1 Starting Orthanc as a GNU/Linux daemon
2 ======================================
3
4 .. contents::
5
1 .. highlight:: bash 6 .. highlight:: bash
2 7
3 Installing Orthanc as a Debian/Ubuntu daemon 8 "init" flavor
4 ============================================ 9 -------------
5 10
6 To install Orthanc as a GNU/Linux daemon on a Debian/Ubuntu system, 11 To install Orthanc as a GNU/Linux `init daemon
7 you can: 12 <https://en.wikipedia.org/wiki/Init>`__ on a Debian/Ubuntu system, you
13 can:
8 14
9 1. Download this `service script 15 1. Download this `service script
10 <https://salsa.debian.org/med-team/orthanc/raw/master/debian/orthanc.init>`_ 16 <https://salsa.debian.org/med-team/orthanc/raw/master/debian/orthanc.init>`_
11 (this file is part of the `official Debian package 17 (this file is part of the `official Debian package
12 <https://tracker.debian.org/pkg/orthanc>`_ of Orthanc), 18 <https://tracker.debian.org/pkg/orthanc>`_ of Orthanc),
30 36
31 *Note*: You can use ``rcconf`` to easily monitor the services that are 37 *Note*: You can use ``rcconf`` to easily monitor the services that are
32 run at startup:: 38 run at startup::
33 39
34 $ sudo apt-get install rcconf 40 $ sudo apt-get install rcconf
41
42
43 "systemd" flavor
44 ----------------
45
46 A sample `systemd daemon <https://en.wikipedia.org/wiki/Systemd>`__
47 for Orthanc can be found in the official `Fedora package
48 <https://apps.fedoraproject.org/packages/orthanc>`__:
49
50 1. Download the `systemd script
51 <https://src.fedoraproject.org/rpms/orthanc/blob/master/f/orthanc.service>`__,
52 2. Adapt some of its variables to reflect the configuration of your
53 system,
54 3. Copy it as ``/etc/systemd/system/orthanc.service``,
55 4. Start the daemon as follows::
56
57 $ sudo systemctl daemon-reload
58 $ sudo systemctl start orthanc.service
59
60 5. To make this change permanent after a reboot, you can create a
61 symbolic link as follows::
62
63 $ sudo ln -s /etc/systemd/system/orthanc.service /etc/systemd/system/default.target.wants/
64
65
66 Other GNU/Linux distributions
67 -----------------------------
68
69 The instructions above have been tested on Debian/Ubuntu/Fedora
70 systems, but should work similarly on other GNU/Linux distributions.