Dummy question - which script contains command to start

General support questions
Post Reply
vshumilin
Posts: 1
Joined: 2021/12/23 09:18:59

Dummy question - which script contains command to start

Post by vshumilin » 2021/12/23 09:25:22

Probably a completely dummy question

running ps aux I see the line

root 1988 0.0 6.6 7680460 560128? Sl Jun08 263: 56 / usr / bin / java -Xmx1200M -jar /opt/apache-jena-fuseki-2.5.0/fuseki-server.jar

I know this fuseki server starts at boot time, system is CentOS Linux 7.9.2009.

How to find out (see) the script that contains the launch command?

I'm an applied programmer, but they asked me to help ...

Thank you.

User avatar
jlehtone
Posts: 4530
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Dummy question - which script contains command to start

Post by jlehtone » 2021/12/23 19:15:24

If that "service" is set up as systemd unit, then the unit would be included in the lists shown by these:

Code: Select all

sudo systemctl
sudo systemctl status
If it has legacy initscript, that should be listed by:

Code: Select all

sudo chkconfig --list
Of course, those names do not need to look similar to the programs they run.

Logically, the script should be within /etc/ and one can search strings from files: grep -r fuseki /etc

Post Reply