vkats
vkats

Reputation: 127

What command "service xyz start" will run to start the service

How one can see what command service will use to run to start a service? I want this without actually starting or having started [1] the service (service xyz start) for 2 reasons:

[1] I know I can see the command, once the process has started in many ways (ps, pgrep, /proc/NNNN/cmdline, top, etc)

Upvotes: 0

Views: 129

Answers (1)

emsworth
emsworth

Reputation: 1171

You are looking for the init.d scripts, located in my distro under /etc/init.d. On RHEL/Centos, chkconfig and service will use scripts at that location, if they conform to a certain format, to manage services.

Upvotes: 1

Related Questions