Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Example Service.md #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
31 changes: 31 additions & 0 deletions Docs/Example Service.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
For Ubuntu 18.04 Systemd
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should work for any Linux distro, so I'd change this to "Run botify as Linux service" or similar


You can run Botify as a service by creating the following .service file under
/etc/systemd/system

vi botify.service</br>
you can name the service file whatever you want to call it.

Than paste the following
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then*


[Unit] </br>
After=postgresql.service </br>
Description=Botify </br>
</br>
[Service]</br>
WorkingDirectory=/home/(your install dir)/botify</br>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd replace /home/(your install dir)/botify with ~/botify and mention that this example assumes that botify is installed in the home dir in the botify directory, as this is generally the case for most users and means that they won't have to change these lines.

ExecStart=/home/(your install dir)/botify/resources/bash/launch.sh</br>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here -> ~/botify/resources/bash/launch.sh

Restart=always</br>
StandardOutput=file:/var/log/botify.log</br>
StandardError=file:/var/log/botify-error.log</br>
User=(Your User) </br>
Group=(Your Group) </br>
[Install]</br>
WantedBy=multi-user.target</br>


After you have created the file run the following command</br>
systemctl daemon-reload

If you want the service to run on boot run the following command</br>
systemctl enable botify