diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2025-04-28 00:02:48 -0600 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2025-04-28 00:02:48 -0600 |
commit | d1c1844f6e7a98bf8d593c810afa44fbfdbd8dc1 (patch) | |
tree | 96d88f095fdd6f607658635b6d2beeaf04386218 | |
parent | ef0187403cfff21a212366b2dd1c4c9dd3bad831 (diff) |
example systemd
-rw-r--r-- | server/example.service | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/server/example.service b/server/example.service new file mode 100644 index 0000000..f562047 --- /dev/null +++ b/server/example.service @@ -0,0 +1,17 @@ +[Unit] +Description=Uvicorn instance to serve application +After=network.target + +[Service] +User=graphexcel +Group=graphexcel +WorkingDirectory=/home/graphexcel/virtual-energy-trading/server +Environment="/home/graphexcel/virtual-energy-trading/server/.venv/bin" +ExecStart=/home/graphexcel/virtual-energy-trading/server/.venv/bin/uvicorn --workers 2 --host 0.0.0.0 --port 8534 main:app +ExecReload=/bin/kill -s HUP $MAINPID +KillMode=mixed +TimeoutStopSec=5 +PrivateTmp=true + +[Install] +WantedBy=multi-user.target |