My Oracle Support Banner

Oracle Linux: How To Write A Custom Script Compatible With The systemd(1) Daemon (Doc ID 2173970.1)

Last updated on AUGUST 20, 2018

Applies to:

Linux OS - Version Oracle Linux 7.2 with Unbreakable Enterprise Kerne [3.8.13] and later
Information in this document applies to any platform.

Goal

The systemd(1) facility replaces the older System-V initialization scripts from earlier releases.  The systemd(1) is an event-driven facility which allows non-dependent subsystems to be started, controlled, or stopped in parallel.  Here we explain how to add a custom script to the systemd(1) facility.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 Write And Debug The Custom Script
 The script must be executable
 Describe The Custom Script To systemd(1)
 Place The Service File Into The Expected Service Collection Directory
 
Enable The Script For Future Reboots
 For Further Reading


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.