Skip to content

Commit

Permalink
Update lxc_autoscale.service
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziosalmi authored Aug 14, 2024
1 parent c292fdb commit c8471c1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion etc/systemd/system/lxc_autoscale.service
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
[Unit]
Description=LXC AutoScale Daemon
Documentation=https://github.com/fabriziosalmi/proxmox-lxc-autoscale
Maintainer=Fabrizio Salmi <[email protected]>
After=network.target

[Service]
ExecStart=/usr/bin/python3 /usr/local/bin/lxc_autoscale.py
Restart=no
Restart=on-failure
RestartSec=10s
User=root

# Ensure that the service is killed if it runs away
KillMode=process
KillSignal=SIGTERM
SendSIGKILL=yes

[Install]
WantedBy=multi-user.target

0 comments on commit c8471c1

Please sign in to comment.