| | 1 | = Konfiguration des System-Service |
| | 2 | |
| | 3 | === Die Definition des System-Service sowie dessen automatischer Start werden durch folgende Datei implementiert: |
| | 4 | |
| | 5 | {{{ |
| | 6 | /etc/systemd/system/transplantact.service |
| | 7 | }}} |
| | 8 | |
| | 9 | === Inhalt: |
| | 10 | |
| | 11 | {{{ |
| | 12 | [Unit] |
| | 13 | Description=Transplantact |
| | 14 | After=network.target |
| | 15 | [Service] |
| | 16 | Type=forking |
| | 17 | Restart=no |
| | 18 | ExecStart=/opt/transplantact/transplantact.sh |
| | 19 | [Install] |
| | 20 | WantedBy= |
| | 21 | }}} |
| | 22 | |
| | 23 | |
| | 24 | ---- |
| | 25 | |
| | 26 | === Die durch den System-Service ausgeführten Befehle werden durch folgende Datei definiert: |
| | 27 | |
| | 28 | {{{ |
| | 29 | /opt/transplantact/transplantact.sh |
| | 30 | }}} |
| | 31 | |
| | 32 | === Inhalt: |
| | 33 | |
| | 34 | {{{ |
| | 35 | #!/bin/sh - |
| | 36 | cd /opt/transplantact |
| | 37 | screen -dm -S transplantact java -jar TransplantAct.jar "ta_driver_class=org.postgresql.Driver" "ta_jdbc_url=jdbc:postgresql://localhost/transplantact" "ta_user=ta_prozessor" "ta_password=instanzspezifischespasswort" "LogDir=/var/log/transplantact/" |
| | 38 | }}} |
| | 39 | |
| | 40 | |
| | 41 | ---- |
| | 42 | |
| | 43 | === Die sich auf den System-Service beziehenden Befehle sind hier dokumentiert: |
| | 44 | |
| | 45 | * [wiki:VmRootKommandos#TransplantAct Wichtige Root-Kommandos der virtuellen Maschine] |
| | 46 | |
| | 47 | |
| | 48 | ---- |