Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.05 KB

source.md

File metadata and controls

44 lines (35 loc) · 1.05 KB

Install from sources

Instructions

Follow the build instructions then:

Prepare files and directories:

# Create a dedicated user
useradd -r mxisd

# Create config directory
mkdir -p /etc/mxisd

# Create data directory and set ownership
mkdir -p /var/lib/mxisd
chown -R mxisd /var/lib/mxisd

# Create bin directory, copy the jar and launch scriot to bin directory
mkdir /usr/lib/mxisd
cp ./build/libs/mxisd.jar /usr/lib/mxisd/
cp ./src/script/mxisd /usr/lib/mxisd
chown -R mxisd /usr/lib/mxisd
chmod a+x /usr/lib/mxisd/mxisd

# Create symlink for easy exec
ln -s /usr/lib/mxisd/mxisd /usr/bin/mxisd

Prepare config file

Copy the configuration file you've created following the build instructions to /etc/mxisd/mxisd.yaml

Prepare Systemd

  1. Copy src/systemd/mxisd.service to /etc/systemd/system/ and edit if needed
  2. Enable service for auto-startup
systemctl enable mxisd

Run

systemctl start mxisd

Debug

mxisd logs to stdout, which is normally sent to /var/log/syslog or /var/log/messages.