You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I changed my startup line to /usr/local/bin/statping -c /etc/statping/config.yaml -s 127.0.0.1 -p 8850 and guess what - /etc/statping/config.yaml is untouched but still some settings does not take effect, database still reverts to /etc/statping/statping.db and allow_reports sets itself to true.
In the end I moved my config to using environment file (loaded through EnvironmentFile= in systemd service), unfortunately DB_DSN doesn't seem to work to define custom sqlite database file path (tried various variation I know and none of them work), SQLFILE doesn't work either.
statping env gives a lot of variables but most of them do not work when set (IP and PORT being one of them which is weird).
The text was updated successfully, but these errors were encountered:
I'm noticing there are some weirdness with config handling.
The app also sets 755 permissions on the
config.yml
which doesn't make any sense.Linux raspberry-pi 6.1.21+ #1642 Mon Apr 3 17:19:14 BST 2023 armv6l GNU/Linux
Legacy Raspberry Pi OS based on Debian 11
Running with
/usr/local/bin/statping -c /etc/statping/config.yml -s 127.0.0.1 -p 8850
and this config:makes the config file get overwritten on launch with this:
Startup log:
It migrates database and app every launch so I assume that's where the config overwrite bug comes from.
service file:
Same issue without protection directives set.
So, I changed my startup line to
/usr/local/bin/statping -c /etc/statping/config.yaml -s 127.0.0.1 -p 8850
and guess what -/etc/statping/config.yaml
is untouched but still some settings does not take effect, database still reverts to/etc/statping/statping.db
andallow_reports
sets itself totrue
.In the end I moved my config to using environment file (loaded through
EnvironmentFile=
in systemd service), unfortunatelyDB_DSN
doesn't seem to work to define custom sqlite database file path (tried various variation I know and none of them work),SQLFILE
doesn't work either.statping env
gives a lot of variables but most of them do not work when set (IP
andPORT
being one of them which is weird).The text was updated successfully, but these errors were encountered: