Skip to content

Commit

Permalink
add example systemd service (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
fruitsbat committed Dec 12, 2021
1 parent 67ac8db commit c6912f5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions example/gotosocial.service
@@ -0,0 +1,23 @@
[Unit]
Description=GoToSocial Server

[Service]

# make sure this user and group exist and have read and write permissions in your GoToSocial folder.
# if they do not exist yet create them with "sudo useradd -r gotosocial"
# then give them permission with "chown -R gotosocial:gotosocial /gotosocial" (path to your gotosocial folder)
# you can adjust the users name according to your setup
User=gotosocial
Group=gotosocial

Type=exec
Restart=on-failure

# change if your path to the GoToSocial binary is different
ExecStart=/gotosocial/gotosocial --config-path config.yaml server start
WorkingDirectory=/gotosocial

[Install]
WantedBy=default.target

# After you are done editing this file move it to "/etc/systemd/system/gotosocial.service" and enable the service with "sudo systemctl enable --now gotosocial.service"

0 comments on commit c6912f5

Please sign in to comment.