Note: You are currently viewing documentation for Moodle 3.10. Up-to-date documentation for the latest stable version of Moodle may be available here: mod/assign/feedback/editpdf/testunoconv/systemd.


From MoodleDocs
Revision as of 11:18, 14 June 2017 by Gisela Hillenbrand (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SystemD script example for unoconv on CentOS/RedHat 7.x

Back to unoconv installation

vim /etc/systemd/system/unoconv.service

If you installed LibreOffice 5.2 packages that are not part of the CentOS/RedHat distribution, You better add the Environment="UNO_PATH=/opt/libreoffice5.2/program" to the file (as seen in the example below) as unoconv might need the python libraries that came with the LibreOffice 5.2 packages. Otherwise, discard the 'Environment' line from the file.

Also, if you installed 'unoconv' from sources (like in the example below), make sure you use the proper path (i.e "/usr/local/bin/unoconv").

Description=Unoconv listener for document conversions
After=network.target remote-fs.target nss-lookup.target

ExecStart=/usr/local/bin/unoconv --listener


After you saved the above file, make it stick between system boots:

#systemctl enable unoconv.service
#systemctl start unoconv.service

Back to unoconv installation