Locating the directory for systemd scripts












0















Tried to add a startup script for cent os, but can't find upstart script directory (which typically is in /etc/init on my ubuntu system]
I heard it's in "/usr/lib/systemd" but it's not on my system:



[root@ lib]# more /etc/issue
CentOS release 5.4 (Final)
Kernel r on an m

[root@ lib]# ls /usr/lib/systemd
ls: /usr/lib/systemd: No such file or directory


Any ideas?










share|improve this question
















bumped to the homepage by Community 4 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    You confuse upstart and systemd. These are two distinct and unrelated (and competing, FWIW) init systems.

    – intelfx
    Jul 9 '15 at 21:40


















0















Tried to add a startup script for cent os, but can't find upstart script directory (which typically is in /etc/init on my ubuntu system]
I heard it's in "/usr/lib/systemd" but it's not on my system:



[root@ lib]# more /etc/issue
CentOS release 5.4 (Final)
Kernel r on an m

[root@ lib]# ls /usr/lib/systemd
ls: /usr/lib/systemd: No such file or directory


Any ideas?










share|improve this question
















bumped to the homepage by Community 4 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    You confuse upstart and systemd. These are two distinct and unrelated (and competing, FWIW) init systems.

    – intelfx
    Jul 9 '15 at 21:40
















0












0








0


0






Tried to add a startup script for cent os, but can't find upstart script directory (which typically is in /etc/init on my ubuntu system]
I heard it's in "/usr/lib/systemd" but it's not on my system:



[root@ lib]# more /etc/issue
CentOS release 5.4 (Final)
Kernel r on an m

[root@ lib]# ls /usr/lib/systemd
ls: /usr/lib/systemd: No such file or directory


Any ideas?










share|improve this question
















Tried to add a startup script for cent os, but can't find upstart script directory (which typically is in /etc/init on my ubuntu system]
I heard it's in "/usr/lib/systemd" but it's not on my system:



[root@ lib]# more /etc/issue
CentOS release 5.4 (Final)
Kernel r on an m

[root@ lib]# ls /usr/lib/systemd
ls: /usr/lib/systemd: No such file or directory


Any ideas?







centos systemd






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 16 '18 at 19:33









Rui F Ribeiro

40.6k1479137




40.6k1479137










asked Jul 9 '15 at 21:13









packetiepacketie

1013




1013





bumped to the homepage by Community 4 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 4 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 1





    You confuse upstart and systemd. These are two distinct and unrelated (and competing, FWIW) init systems.

    – intelfx
    Jul 9 '15 at 21:40
















  • 1





    You confuse upstart and systemd. These are two distinct and unrelated (and competing, FWIW) init systems.

    – intelfx
    Jul 9 '15 at 21:40










1




1





You confuse upstart and systemd. These are two distinct and unrelated (and competing, FWIW) init systems.

– intelfx
Jul 9 '15 at 21:40







You confuse upstart and systemd. These are two distinct and unrelated (and competing, FWIW) init systems.

– intelfx
Jul 9 '15 at 21:40












1 Answer
1






active

oldest

votes


















0














RHEL 5 does not have systemd. Redhat Enterprise 5 and CentOS 5 usesysvinit, version 6 usesupstart, and version 7 usessystemd`.






share|improve this answer


























  • Thanks for the quick answer @uwe-burger. Wonder where is the directory for start up script. On my ubuntu system, it was in /etc/init.

    – packetie
    Jul 9 '15 at 21:25











  • Sorry, i have not used redhat 5 system, i thought it would be etc/init, i only know about redhat enterprise switching from upstart to systemd because of the systemd debate. Google redhat enterprise 5 and upstart you should find documentation.

    – Uwe Burger
    Jul 9 '15 at 21:29











  • Thanks @uwe-burger for the info about difference between ver 5 and 6!

    – packetie
    Jul 9 '15 at 21:47






  • 1





    From my understanding RHEL/CentOS 5 uses sysvinit, 6 uses upstart, 7 uses systemd.

    – yaegashi
    Jul 9 '15 at 23:56











  • Yes sorry i confused it. 5 sysvinit, 6 upstart and 7 is systemd.

    – Uwe Burger
    Jul 10 '15 at 10:18











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f214967%2flocating-the-directory-for-systemd-scripts%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














RHEL 5 does not have systemd. Redhat Enterprise 5 and CentOS 5 usesysvinit, version 6 usesupstart, and version 7 usessystemd`.






share|improve this answer


























  • Thanks for the quick answer @uwe-burger. Wonder where is the directory for start up script. On my ubuntu system, it was in /etc/init.

    – packetie
    Jul 9 '15 at 21:25











  • Sorry, i have not used redhat 5 system, i thought it would be etc/init, i only know about redhat enterprise switching from upstart to systemd because of the systemd debate. Google redhat enterprise 5 and upstart you should find documentation.

    – Uwe Burger
    Jul 9 '15 at 21:29











  • Thanks @uwe-burger for the info about difference between ver 5 and 6!

    – packetie
    Jul 9 '15 at 21:47






  • 1





    From my understanding RHEL/CentOS 5 uses sysvinit, 6 uses upstart, 7 uses systemd.

    – yaegashi
    Jul 9 '15 at 23:56











  • Yes sorry i confused it. 5 sysvinit, 6 upstart and 7 is systemd.

    – Uwe Burger
    Jul 10 '15 at 10:18
















0














RHEL 5 does not have systemd. Redhat Enterprise 5 and CentOS 5 usesysvinit, version 6 usesupstart, and version 7 usessystemd`.






share|improve this answer


























  • Thanks for the quick answer @uwe-burger. Wonder where is the directory for start up script. On my ubuntu system, it was in /etc/init.

    – packetie
    Jul 9 '15 at 21:25











  • Sorry, i have not used redhat 5 system, i thought it would be etc/init, i only know about redhat enterprise switching from upstart to systemd because of the systemd debate. Google redhat enterprise 5 and upstart you should find documentation.

    – Uwe Burger
    Jul 9 '15 at 21:29











  • Thanks @uwe-burger for the info about difference between ver 5 and 6!

    – packetie
    Jul 9 '15 at 21:47






  • 1





    From my understanding RHEL/CentOS 5 uses sysvinit, 6 uses upstart, 7 uses systemd.

    – yaegashi
    Jul 9 '15 at 23:56











  • Yes sorry i confused it. 5 sysvinit, 6 upstart and 7 is systemd.

    – Uwe Burger
    Jul 10 '15 at 10:18














0












0








0







RHEL 5 does not have systemd. Redhat Enterprise 5 and CentOS 5 usesysvinit, version 6 usesupstart, and version 7 usessystemd`.






share|improve this answer















RHEL 5 does not have systemd. Redhat Enterprise 5 and CentOS 5 usesysvinit, version 6 usesupstart, and version 7 usessystemd`.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jul 10 '15 at 0:55









jordanm

30.9k38695




30.9k38695










answered Jul 9 '15 at 21:17









Uwe BurgerUwe Burger

1511




1511













  • Thanks for the quick answer @uwe-burger. Wonder where is the directory for start up script. On my ubuntu system, it was in /etc/init.

    – packetie
    Jul 9 '15 at 21:25











  • Sorry, i have not used redhat 5 system, i thought it would be etc/init, i only know about redhat enterprise switching from upstart to systemd because of the systemd debate. Google redhat enterprise 5 and upstart you should find documentation.

    – Uwe Burger
    Jul 9 '15 at 21:29











  • Thanks @uwe-burger for the info about difference between ver 5 and 6!

    – packetie
    Jul 9 '15 at 21:47






  • 1





    From my understanding RHEL/CentOS 5 uses sysvinit, 6 uses upstart, 7 uses systemd.

    – yaegashi
    Jul 9 '15 at 23:56











  • Yes sorry i confused it. 5 sysvinit, 6 upstart and 7 is systemd.

    – Uwe Burger
    Jul 10 '15 at 10:18



















  • Thanks for the quick answer @uwe-burger. Wonder where is the directory for start up script. On my ubuntu system, it was in /etc/init.

    – packetie
    Jul 9 '15 at 21:25











  • Sorry, i have not used redhat 5 system, i thought it would be etc/init, i only know about redhat enterprise switching from upstart to systemd because of the systemd debate. Google redhat enterprise 5 and upstart you should find documentation.

    – Uwe Burger
    Jul 9 '15 at 21:29











  • Thanks @uwe-burger for the info about difference between ver 5 and 6!

    – packetie
    Jul 9 '15 at 21:47






  • 1





    From my understanding RHEL/CentOS 5 uses sysvinit, 6 uses upstart, 7 uses systemd.

    – yaegashi
    Jul 9 '15 at 23:56











  • Yes sorry i confused it. 5 sysvinit, 6 upstart and 7 is systemd.

    – Uwe Burger
    Jul 10 '15 at 10:18

















Thanks for the quick answer @uwe-burger. Wonder where is the directory for start up script. On my ubuntu system, it was in /etc/init.

– packetie
Jul 9 '15 at 21:25





Thanks for the quick answer @uwe-burger. Wonder where is the directory for start up script. On my ubuntu system, it was in /etc/init.

– packetie
Jul 9 '15 at 21:25













Sorry, i have not used redhat 5 system, i thought it would be etc/init, i only know about redhat enterprise switching from upstart to systemd because of the systemd debate. Google redhat enterprise 5 and upstart you should find documentation.

– Uwe Burger
Jul 9 '15 at 21:29





Sorry, i have not used redhat 5 system, i thought it would be etc/init, i only know about redhat enterprise switching from upstart to systemd because of the systemd debate. Google redhat enterprise 5 and upstart you should find documentation.

– Uwe Burger
Jul 9 '15 at 21:29













Thanks @uwe-burger for the info about difference between ver 5 and 6!

– packetie
Jul 9 '15 at 21:47





Thanks @uwe-burger for the info about difference between ver 5 and 6!

– packetie
Jul 9 '15 at 21:47




1




1





From my understanding RHEL/CentOS 5 uses sysvinit, 6 uses upstart, 7 uses systemd.

– yaegashi
Jul 9 '15 at 23:56





From my understanding RHEL/CentOS 5 uses sysvinit, 6 uses upstart, 7 uses systemd.

– yaegashi
Jul 9 '15 at 23:56













Yes sorry i confused it. 5 sysvinit, 6 upstart and 7 is systemd.

– Uwe Burger
Jul 10 '15 at 10:18





Yes sorry i confused it. 5 sysvinit, 6 upstart and 7 is systemd.

– Uwe Burger
Jul 10 '15 at 10:18


















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f214967%2flocating-the-directory-for-systemd-scripts%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Accessing regular linux commands in Huawei's Dopra Linux

Can't connect RFCOMM socket: Host is down

Kernel panic - not syncing: Fatal Exception in Interrupt