D
D
Denis2016-03-15 14:39:59
linux
Denis, 2016-03-15 14:39:59

How to find out what linux starts at startup?

There is a system in which some program is launched, I need to find out where it lies and what else is launched with it.
There is nothing similar in standard console output, mostly standard services.
Maybe you can turn on a more detailed output, where all the sh commands will be registered?
Help me please )

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konkase, 2016-03-15
@Konkase

At least indicate which system
www.tldp.org/LDP/intro-linux/html/sect_04_02.html

P
pavlinux, 2016-03-15
@pavlinux

I need to find out where she is

# lsof | grep program

and what else starts with it.

# strace -ff /usr/bin/program
Very harsh - bootchart

G
Georgy Pelageykin, 2016-03-15
@ArXen42

If the distribution kit is on systemd, then you can look into its journal (journalctl -b), and it should hang in the usual top / htop. Further, usually package managers are able to search for a package by an executable file and vice versa, display files belonging to a package, and so on. Further, you can (in the case of systemd) look at the service file of this program - it should indicate what starts with it (for other init systems, there should also be an analogue, depending on the distro).
I did not delve deeply into these issues, but if I had such a problem, I would solve it in a similar way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question