How to create custom systemd target unit ?

Solution Verified - Updated -

Issue

  • In an external application there are 4 services which I would like to manage them altogether, being able to run the four systemctl commands with just one call.
    e.g.
# systemctl app start

Environment

  • Red Hat Enterprise Linux 7
  • systemd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In