Skip to content

Ubuntu Server 20.04

isokix edited this page Oct 5, 2020 · 7 revisions

Install pre requisites

sudo apt-get install git-core python

Clone the repo to /opt/maraschino

git clone https://github.com/mrkipling/maraschino.git /opt/maraschino

Now create systemd service

sudo nano /etc/systemd/system/maraschino.service

Copy paste this into the file

[Unit]
Description=Maraschino service
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/maraschino
ExecStart=/opt/maraschino/Maraschino.py
StandardOutput=syslog
StandardError=syslog

[Install]
WantedBy=multi-user.target

Reload systemd services

sudo systemctl daemon-reload

Enable the service

sudo systemctl enable maraschino

Start the service or reboot the server

sudo systemctl start maraschino.service

Check that worked with

sudo systemctl status maraschino.service

Clone this wiki locally