Nuxeo Server

Configuring the Nuxeo Platform as a Daemon with Systemd

Updated: September 22, 2017 Page Information Edit on GitHub

This page is scheduled for review and update. Check back soon for updated content!

Here is a systemd script which starts Nuxeo as a daemon or like any other service after Elasticsearch and PostgreSQL.

/etc/systemd/system/nuxeo.service

[Unit]
Description=Starts and stops a single Nuxeo instance
After=syslog.target network.target postgresql.service elasticsearch.service

[Service]
Type=forking
User=nuxeo
Group=nuxeo
ExecStart=/opt/nuxeo/bin/nuxeoctl --quiet startbg
ExecReload=/opt/nuxeo/bin/nuxeoctl --quiet restartbg
ExecStop=/opt/nuxeo/bin/nuxeoctl --quiet stop
Restart=on-abnormal
RestartSec=15
# See MAX_OPEN_FILES in sysconfig
LimitNOFILE=65535
TimeoutStopSec=60
Environment=NUXEO_CONF=/etc/nuxeo/nuxeo.conf

[Install]
WantedBy=multi-user.target

  1. Copy the systemd script to /etc/systemd/system/nuxeo.service, replacing paths to match your installation.
  2. Enable the autostart creating the links in the rcX.d directories running the command (as root):

    $ systemctl daemon-reload
    $ systemctl enable nuxeo
    
  3. Restart the machine and verify that the Nuxeo Platform is started automatically looking at the log file.

If you want to remove the automatic startup use the command (as root):

$ systemctl disable nuxeo

You can manage the service with the following command:

systemctl [start|stop|reload] nuxeo

 

Credits to undefined who contributed it for CentOs or SUSE.

Other Linux-Related Documentation
 
3 days ago manonlumeau NXDOC-1323: Update BDE doc
2 years ago Mathieu Guillaume 6
2 years ago Mathieu Guillaume 5 | Added NUXEO_CONF variable
2 years ago Julien Carsique 4 | Avoid stop/restart during manual restart
2 years ago Julien Carsique 3
2 years ago Julien Carsique 2
2 years ago Julien Carsique 1
History: Created by Julien Carsique