Skip to content

enonic-cloud/xp-systemd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enonic XP systemd setup

Tested with

Linux distro Verified it works
Ubuntu 20.04
Amazon Linux 2

Explanation of the setup

What we want to achieve to setup XP with systemd, that is easy to install, upgrade, rollback and backup. These examples do the following:

  1. Set correct vm.max_map_count.
  2. Create a user and group for XP.
  3. Download and extract the desired disto into /opt/enonic/distros.
  4. Setup the XP home folder at /opt/enonic/home.
  5. Create a systemd service file using the desired distro.
  6. Start systemd service (ansible only).

Using ansible-playbook

Use ansible playbook:

$ ansible-playbook -i <INVENTORY> xp-systemd.yml

Using sh script

You can use the sh script. First copy the script to the server and then run as root:

$ ./xp-systemd.sh
$ systemctl daemon-reload
$ systemctl enable --now xp.service

Testing with vagrant

Vagrant will automatically provision the systemd service when you create

$ vagrant up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages