systemd stop script

General support questions
Post Reply
Posts: 1
Joined: 2018/04/17 07:57:00

systemd stop script

Post by alfons » 2018/04/17 08:17:07

Hello to all,

I'm not new to linux but until now I don't know anything about systemd. I think it is not straight forward to use.......
Questions I have:
- CentOS 7 uses systemd, but I see all the "old" init.d, rc*.d directories. Does that mean it uses both system V and systemd?
- I need to start a script as the server shut's down to shutdown a database first. In the old days I had to use a K* link in the rc*.d directory. Can anyone give an example of the unit script to be used?

Best regards, Alfons

User avatar
Forum Moderator
Posts: 24778
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: systemd stop script

Post by TrevorH » 2018/04/17 08:22:25

What database?
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply