summaryrefslogtreecommitdiff
path: root/example/gotosocial.service
diff options
context:
space:
mode:
Diffstat (limited to 'example/gotosocial.service')
-rw-r--r--example/gotosocial.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/example/gotosocial.service b/example/gotosocial.service
index 37a66c66e..b59f6b5a6 100644
--- a/example/gotosocial.service
+++ b/example/gotosocial.service
@@ -13,6 +13,15 @@ Group=gotosocial
Type=exec
Restart=on-failure
+# For speedier restart times, you can uncomment the following Environment line to have GoToSocial cache compiled
+# Wazero artifacts in the given directory between restarts, so that it doesn't need to compile on startup every time.
+#
+# You may need to change the exact path depending on where you've got GoToSocial installed, for example if you've
+# installed at "~/gotosocial" then change the value to "GTS_WAZERO_COMPILATION_CACHE=~/gotosocial/.cache".
+#
+# Whatever you do, make sure the dir exists and that the gotosocial user has permission to write + read from it.
+#Environment="GTS_WAZERO_COMPILATION_CACHE=/gotosocial/.cache"
+
# change if your path to the GoToSocial binary is different
ExecStart=/gotosocial/gotosocial --config-path config.yaml server start
WorkingDirectory=/gotosocial