Created
December 21, 2016 17:52
-
-
Save milouse/b2b314541e58724df923594a0acd689f to your computer and use it in GitHub Desktop.
Headless LibreOffice systemd service file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Control headless soffice instance | |
After=network.target xvfb.service | |
Requires=xvfb.service | |
[Service] | |
Type=simple | |
ExecStart=/opt/libreoffice4.4/program/soffice --headless \ | |
--accept=socket,host=127.0.0.1,port=8101;urp; --display :5.0 \ | |
--pidfile=/var/run/soffice.pid --nologo --nodefault --nofirststartwizard | |
RestartSec=5 | |
ExecStop=/usr/bin/pkill -F /var/run/soffice.pid | |
PIDFile=/var/run/soffice.pid | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment