Install LibreOffice as a Windows Service with AlwaysUp

How to Install LibreOffice as a Windows Service with AlwaysUp

Automatically start LibreOffice in headless/API mode whenever your computer reboots. Keep it running 24x7x365 in the background.

LibreOffice is a popular, free, open source office suite. It has been available since 2010.

Most users run LibreOffice interactively, but the software can also run headless — invisible, servicing requests from other applications. This tutorial focuses on headless operation.

To install LibreOffice as a Windows Service:

  1. If necessary, download and install LibreOffice.

  2. Construct the command line that will run LibreOffice in headless mode, as you like. The command line reference lists all the options (also available by running "soffice.exe --help").

    Please validate and make sure that your command works from a prompt! If it does not, then it will not work as a Windows Service either.

    This command line did the trick for us; we'll automate this command as a service in a later step:

    soffice.exe --headless --invisible --accept="socket,host=0.0.0.0,port=8100;urp;StarOffice.Service"
  3. Download and install AlwaysUp.

  4. Start AlwaysUp.

  5. Select Application > Add to open the Add Application window:

    Add Application

  6. On the General tab:

    • In the Application field, enter the full path to the LibreOffice executable, soffice.exe.

      If you installed LibreOffice in the standard location, that path will be:

      C:\Program Files\LibreOffice\program\soffice.exe
    • In the Arguments field, enter soffice.exe command line parameters you identified in step 2. Be sure to enclose components in quotes as required.

    • In the Name field, enter the name that you will call this application in AlwaysUp. We have entered LibreOffice but you can enter another value if you like.

    LibreOffice Windows Service: General Tab

  7. Click over to the Logon tab. Check the box at the top and enter the username and password of the Windows account where you installed LibreOffice.

    You must run LibreOffice from that account, where all installation and registry settings are available.

    LibreOffice Windows Service: Logon Tab

  8. Switch to the Startup tab and check the Ensure that the Windows Networking components have started box. This tells AlwaysUp that LibreOffice needs the TCP/IP stack to do its work.

    LibreOffice Windows Service: Startup Tab

  9. We are done configuring LibreOffice as a Windows Service so click the Save button to record our settings. In a couple of seconds, a new entry for LibreOffice (or whatever you called it) will show up in the AlwaysUp window.

    Notice that the state will be "Stopped" because the service is not yet running:

    LibreOffice Windows Service: Created

  10. To start LibreOffice as a service, choose Application > Start "LibreOffice". The entry's state should change to "Running" after a few seconds and LibreOffice will be running headless in the background.

    Click the green circle to see details of the "soffice.exe" process:

    LibreOffice Windows Service: Started

  11. That's it! Next time your computer boots, LibreOffice will start immediately, before anyone logs on. We encourage you to edit the service in AlwaysUp and check out the many other settings that may be appropriate for your environment. For example, restart LibreOffice once per week (to cure memory leaks), send an email if the LibreOffice fails, setup a weekly report, and much more.



LibreOffice not working properly as a Windows Service?

  • Consult the AlwaysUp Troubleshooter — our online tool that can help you resolve the most common problems encountered when running an application as a windows service.

  • From AlwaysUp, select Application > Report Activity > Today... to bring up a HTML report detailing the interaction between AlwaysUp and LibreOffice. The AlwaysUp Event Log Messages page explains the messages that may appear.

  • Browse the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips.

  • Contact us and we will be happy to help!

Download & Try it Free!

Download AlwaysUp and Run as a Service Today! Version 11.5

4.8 MB Installer
  • Unrestricted 30-day trial for new users; upgrade for existing users
  • For Windows 10/8.1/8/7 and Windows Server 2019/2016/2012 R2/2008
  • How to Install | EULA
Our customers include...


Compatible with Windows 10 (32 & 64-bit)

Windows Server 2012 Certified (32 & 64-bit)

Windows 8 Compatible (32 & 64-bit)

Compatible with Windows 7 (32 & 64-bit)

Works with Windows Server 2008 R2 (32 & 64-bit)



Over 82,000 installations, and counting!
 
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 15+ years!