Title
#general
d

demonbhao

11/16/2020, 12:36 PM
Hello, osQuery automatically offline is there a good way to detect it I'm currently using a script to determine if the application is alive to restore osquery
sundsta

sundsta

11/16/2020, 4:10 PM
If osquery is regularly crashing, you should investigate why. That’s not normal.
d

demonbhao

11/17/2020, 2:09 AM
The main reason is that the server itself may restart or crash, so I want to know whether osquery has self-healing function or whether It can start osquery via Fleet
sundsta

sundsta

11/17/2020, 5:30 PM
Each OS has its own way of restarting service automatically. On Linux with systemd (which I think you’re using?), that’s controlled by the
Restart=
flag in the service file. See https://www.freedesktop.org/software/systemd/man/systemd.service.html#Restart=
5:30 PM
Also you want to make sure your
Type=
setting is correct https://www.freedesktop.org/software/systemd/man/systemd.service.html#Type=
d

demonbhao

11/18/2020, 5:54 AM
Ok, thanks for your reply