Upstart Skript für Ubuntu Systeme: Unterschied zwischen den Versionen
Aus MoodleDocs
(Die Seite wurde neu angelegt: „= Upstart script example for unoconv on ubuntu = Back to unoconv installation This script can be installed to…“) |
Keine Bearbeitungszusammenfassung |
||
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
{{Dokumentkonverter}} | |||
[[Universal_Office_Konverter|Zurück zur Installation von unoconv]] | |||
Dieser Artikel beschreibt ein Skript, das Sie beim Booten von Ubuntu-Systemen verwenden können, um einen unoconv-Listener zu starten. Das Skript kann unter ''/etc/init/unoconv.conf'' gespeichert und wie folgt gestartet werden: | |||
<pre> | <pre> | ||
sudo start unoconv | sudo start unoconv | ||
</pre> | </pre> | ||
Hier kommt das Skript: | |||
<pre> | <pre> | ||
# Unoconv listener service | # Unoconv listener service | ||
Zeile 54: | Zeile 55: | ||
</pre> | </pre> | ||
[[ | [[Universal_Office_Konverter|Zurück zur Installation von unoconv]] | ||
[[en:mod/assign/feedback/editpdf/testunoconv/upstart]] | [[en:mod/assign/feedback/editpdf/testunoconv/upstart]] |
Aktuelle Version vom 14. Juni 2017, 11:48 Uhr
Zurück zur Installation von unoconv
Dieser Artikel beschreibt ein Skript, das Sie beim Booten von Ubuntu-Systemen verwenden können, um einen unoconv-Listener zu starten. Das Skript kann unter /etc/init/unoconv.conf gespeichert und wie folgt gestartet werden:
sudo start unoconv
Hier kommt das Skript:
# Unoconv listener service # Install to /etc/init/ folder and start with "sudo service unoconv start" # This will start a unoconv listener and restart it if it dies. The listener # will run as the apache user "www-data" and have access to the same files/folders # as that user. # The home folder for this listener will point to /tmp/ and any temporary files used by # libreoffice will be created there. description "Unoconv Apache Listener" author "Damyon Wiese <damyon@moodle.com>" start on filesystem or runlevel [2345] stop on starting rc RUNLEVEL=[016] respawn respawn limit 2 5 env HOME=/tmp setuid www-data # The default of 5 seconds is too low for mysql which needs to flush buffers pre-start script # Kill any currently running soffice processes. /usr/bin/killall soffice.bin || true # Service logging when starting echo "[`date`] Starting unoconv service" >> /var/log/unoconv.log end script script # pid file... echo $$ > /var/run/unoconv.pid exec usr/bin/unoconv --listener end script pre-stop script # Remove pid file first rm /var/run/unoconv.pid # Service logging when stopping echo "[`date`] Stopping unoconv service" >> /var/log/unoconv.log end script