K
K
Konstantin2020-09-01 22:55:38
linux
Konstantin, 2020-09-01 22:55:38

Why does the service (memcached) need two files /etc/init.d/memcached and /lib/systemd/system/memcached.service?

Hello.
For example, I took the memcached package from 18.04 - https://packages.ubuntu.com/bionic/memcached ( security.ubuntu.com/ubuntu/pool/main/m/memcached/m... )
and noticed that there are two files responsible for starting/stopping the service

/etc/init.d/memcached
/lib/systemd/system/memcached.service

The question arose: why two, why it was impossible to make only one?
Or do they have different functionality? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2020-09-01
@webmaster

The first is for init.d the second is for system.d, different distributions will have only one of them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question