How to check where logstash conf file is running or not through program

How are you running Logstash? Classic SysV init? systemd? Something else?