--- a/server/server_settings.hpp
+++ b/server/server_settings.hpp
@@ -27,7 +27,7 @@
     struct Server
     {
         int threads{-1};
-        std::string pid_file{"/var/run/snapserver/pid"};
+        std::string pid_file{"@TERMUX_PREFIX@/var/run/snapserver/pid"};
         std::string user{"snapserver"};
         std::string group{""};
         std::string data_dir{""};
