I
I
Ilya Evseev2017-07-04 05:45:34
CentOS
Ilya Evseev, 2017-07-04 05:45:34

How to manage all and individual service processes in systemd?

There is:

  • many /etc/mydaemon/*.conf files
  • each of them must start a mydaemon process

I want to:
  • command "systemctl start/stop/status mydaemon" to start/stop/check all processes
  • command "systemctl start/stop/status [email protected]" start/stop/check mydaemon -c /etc/mydaemon/xx.conf

Problem:
  • You can add the files mydaemon.service and [email protected] to /etc/systemd/system, but they won't know about each other.
  • For example, if you start mydaemon.service, then [email protected] will not consider itself running.

Does she have a solution in systemd? In SysVrc, this was done trivially.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mureevms, 2017-07-04
@mureevms

systemctl <start/stop/status> mydaemon*

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question