# Creating a systemd service

Published 2022-08-03

Just out of my laziness I was running this wiki by executing corresponding service in the screen, which is not really a good way of hosting an application 24/7 in my opinion. I had to learn to how make a systemd service which will run all this stuff.

And it is actually surprisingly easy. So easy that you can learn how to do it in 5 minutes, and presumably forget how to do it in a day, which is the reason why I am doing this guide...

# Locating executable of an app

Systemd requires absolute location of your executable application, which is generally somewhere at /usr/bin or /usr/local/bin location, looking like /usr/bin/htop in case of our beloved htop

I was executing and running wiki app by using commands below:

$ screen
$ cd /home/myuser/wikidir/
$ retype run