systemd stop script

General support questions
Post Reply
alfons
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
TrevorH
Site Admin
Posts: 33219
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?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply