Is your feature request related to a problem? Please describe.
-startupnotify
and -shutdownnotify
configuration parameter accept shell commands to be executed after Bitcoin Core starts/shutdown
One is still WIP and not merged: https://github.com/bitcoin/bitcoin/pull/23395
This provides options for attackers to target new users of Bitcoin Core and one example which involves some social engineering is explained in https://github.com/bitcoin/bitcoin/pull/23395#issuecomment-956353035
Describe the solution you’d like
I am not sure how is this used currently by different users and projects however if reading notifications about start/shutdown is the goal maybe a file with name notifications.dat
with below format can help:
0lastshutdown=1635786273
1lastrestart=SOMEUNIXTIME
2currentstate=shutdown
Initially suggested this solution in https://github.com/bitcoin/bitcoin/pull/23395#issuecomment-955775728
Describe alternatives you’ve considered
Educate users about misuse of *notify options