Skip to content

Commit

Permalink
add service units
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Oct 12, 2023
1 parent b7bdbb5 commit 0c1bc52
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions etc/systemd/system/pinkman_server.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=Pinkman Server
After=multi-user.target
StartLimitIntervalSec=500
StartLimitBurst=5

[Service]
Restart=on-failure
RestartSec=5s
ExecStart=pinkman server run -c /etc/config.pinkman.prod.yml

[Install]
WantedBy=multi-user.target

14 changes: 14 additions & 0 deletions etc/systemd/system/pinkman_worker.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=Pinkman Worker
After=multi-user.target
StartLimitIntervalSec=500
StartLimitBurst=5

[Service]
Restart=on-failure
RestartSec=5s
ExecStart=pinkman worker run -c /etc/config.pinkman.prod.yml

[Install]
WantedBy=multi-user.target

0 comments on commit 0c1bc52

Please sign in to comment.