summarylogtreecommitdiffstats
path: root/ghostfolio.service
diff options
context:
space:
mode:
Diffstat (limited to 'ghostfolio.service')
-rw-r--r--ghostfolio.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/ghostfolio.service b/ghostfolio.service
new file mode 100644
index 000000000000..9ccc6401cfb0
--- /dev/null
+++ b/ghostfolio.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Open source wealth management
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/yarn start:prod
+WorkingDirectory=/usr/lib/ghostfolio/api
+EnvironmentFile=/etc/ghostfolio.env
+User=ghostfolio
+Group=ghostfolio
+RestartSec=10
+
+[Install]
+WantedBy=multi-user.target