Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

systemd

d7415 edited this page Apr 7, 2018 · 2 revisions

Merlin and Arthur can be run as systemd services. Sample unit files are provided.

Installation

Notes

  • These instructions assume you are using Debian Jessie or Stretch with systemd and are running as a non-root user with sudoer privileges.
  • If you don't want to use Arthur, don't enable it.

Step One: Edit the files

Open arthur.service and merlin.service and replace "botname" with your bot's nick.

Step Two: Copy the files

sudo cp arthur.service merlin.service /etc/systemd/system/

Step Three: Enable the services

sudo systemctl enable merlin.service
sudo systemctl enable arthur.service

Step Four: Start the services

First, stop any existing Merlin and Arthur instances for this bot. Then:

sudo systemctl start merlin.service
sudo systemctl start arthur.service

Done

Merlin and Arthur should now start with your system and stay running in the background without the need for screen.