Skip to content

Commit

Permalink
Create autoscaleapi.service
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziosalmi authored Aug 16, 2024
1 parent e0ed7d7 commit c12d58d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions api/autoscaleapi.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[Unit]
Description=LXC AutoScale API
After=network.target

[Service]
User=root
Group=root
Environment="PATH=/usr/local/bin:/usr/bin:/bin"
WorkingDirectory=/usr/local/bin/autoscaleapi
ExecStart=/usr/local/bin/gunicorn --workers 2 --bind 0.0.0.0:5000 app:app

# Restart on failure
Restart=on-failure
RestartSec=3

[Install]
WantedBy=multi-user.target

0 comments on commit c12d58d

Please sign in to comment.