LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-17-2018, 04:14 AM   #1
tankzeu
LQ Newbie
 
Registered: Sep 2018
Posts: 26

Rep: Reputation: Disabled
init.d script to systemd with systemd-sysv-generator


Hello,when I converted my init.d script to systemd with systemd-sysv-generator and started the systemd service I saw that my init.d script does the same work and of course I can manage the service with the systemctl commands.Is the service considered init.d and systemd and if yes shouldn't it be considered systemd only?
 
Old 09-17-2018, 05:41 AM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 2,212

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
From the man page:

Quote:
systemd-sysv-generator is a generator that creates wrapper .service units for SysV init scripts in /etc/init.d/* at boot and when configuration of the system manager is reloaded. This will allow systemd(1) to support them similarly to native units.
So, it does not convert the init.d service. Rather, it leaves the init.d service as it is and creates a unit definition file that manages it. The unit file is created dynamically at each boot and daemon-reload event.

You can consider it an init.d service or a systemd service or both, as you like.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Replace Systemd With SysV Init On Debian Linux LXer Syndicated Linux News 0 11-29-2017 09:20 AM
LXer: The Story Behind ‘init’ and ‘systemd’: Why ‘init’ Needed to be Replaced with ‘systemd’ in Linu LXer Syndicated Linux News 1 04-08-2017 12:33 AM
[SOLVED] Is there an easy way to convert sysV to systemd scripts? Or add dependencies to a sysV script? irey Linux - Software 2 10-19-2016 07:51 AM
Can't access full journalctl from script via systemd service even though user is in systemd-journal group iwtbf Linux - Newbie 0 02-19-2016 03:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration