Uploaded image for project: 'RHEL Documentation'
  1. RHEL Documentation
  2. RHELDOCS-19905

1.7. Creating custom unit files (with single command)

XMLWordPrintable

    • None
    • None
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • CCS 2025-7
    • None
    • Unspecified
    • Unspecified
    • Unspecified

      I think the Command(s) described in https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html-single/using_systemd_unit_files_to_customize_and_optimize_your_system/index#proc_creating-custom-unit-files_assembly_working-with-systemd-unit-files are a bit redundant.

      # touch /etc/systemd/system/<name>.service
      # chmod 664 /etc/systemd/system/<name>.service
      

      can be replaced with a single

      # systemctl edit --full --force <name>.service
      

      That would also ensure the correct file permissions

              rhn-support-musoni Mugdha Soni
              e0103393 Jan Heurich (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: