-
-
Save lucas1/e10e32a0a0f08d65599ca9545b6e78b0 to your computer and use it in GitHub Desktop.
Headless LibreOffice systemd service file
This file contains hidden or 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