Skip to content

Commit

Permalink
Add example unit for systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadido3 committed Nov 13, 2021
1 parent 3584849 commit 710c2cd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions service/systemd/galago.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This unit file assumes that galago is installed in /root/galago/
# It is good practice to change the user from root to something less priviledged and install galago somewhere else.

[Unit]
Description=Galago image gallery server
After=network.target

[Service]
Type=simple
Restart=always
RestartSec=1
User=root
WorkingDirectory=/root/galago
ExecStart=/root/galago/Galago

[Install]
WantedBy=multi-user.target

0 comments on commit 710c2cd

Please sign in to comment.