title: How can I check if init script called on startup?
body: <p>I have a init script on FreeBSD. This script called on startup by rc.d. What I want to do that to check if this script called on start up or manually by user. How can I do this check in this script. Is it possible? Thank you for any help...</p>
  
  <p>Note that my question is valid for FreeBSD but I also added linux tag in case of maybe same solution may be aplied for linux</p>