PHP supports the use of persistent SQLite connections. However, a problem arises in trying to run maintenance scripts (like a file backup), with such a connection opened. These scripts are likely to be run without a server restart every now and then, in periods of low traffic.
How can I check if there is currently an SQLite persistent connection, without opening / calling one (hence creating the connection)?
If you have access to shell_exec() or exec, you can run a shell command to check to see if a SQLite process is running using something like
topor maybe a command likelsof -i -n -P | grep sqliteassumingsqliteis the name of the process.