can't use /etc/init.d/* functions

idon

Verified User
Joined
Oct 10, 2017
Messages
16
Hello,
I try to use:
/etc/init.d/directadmin restart
for example but get error:
-bash: /etc/init.d/directadmin: No such file or directory

I'm running centos 7 minimal.
how to fix it?
 
You are running CentOS 7, so why don't you just do:

Code:
systemctl restart directadmin.service
 
You are running CentOS 7, so why don't you just do:

Code:
systemctl restart directadmin.service

Because then there is no feedback if the operation success or not...
Do you know how to fix it?
 
Do you know the reason why the old way not work? And how to fix it?
 
It's a change made my Red Hat / CentOS and also Debian is following this change. I'm not into Linux this deep to understand the full background of it, just that it's this way now.

Usually, if the daemon you restart fails, it will output you so and a journal command to debug it.
 
Back
Top