[Unit] Description=Control headless libreoffice instance After=network.target [Service] Type=simple ExecStart=/usr/bin/libreoffice --headless \ --accept=socket,host=127.0.0.1,port=8101;urp; \ --nodefault --nofirststartwizard --nolockcheck \ --nologo --norestore --invisible \ --pidfile=/var/run/libreoffice.pid RestartSec=5 ExecStop=/usr/bin/pkill -F /var/run/libreoffice.pid PIDFile=/var/run/libreoffice.pid [Install] WantedBy=multi-user.target