Skip to content

Commit

Permalink
Add example systemd config file
Browse files Browse the repository at this point in the history
  • Loading branch information
peteretelej committed Aug 21, 2023
1 parent 64768fa commit 20e5ace
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
config.json
go-deploy
*.exe
*.service
16 changes: 16 additions & 0 deletions execapi.service.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Example Systemd service. update user name

[Unit]
Description=Exec API Systemd Service
ConditionPathExists=/home/user/apps/execapi
After=network.target

[Service]
Type=simple
User=user
ExecStart=/home/user/apps/execapi/execapi
WorkingDirectory=/home/user/apps/execapi
Restart=always

[Install]
WantedBy=multi-user.target

0 comments on commit 20e5ace

Please sign in to comment.