If you receive the following error while trying to restart Centova Cast:
-bash: /etc/init.d/centovacast: No such file or directory
after running:
/etc/init.d/centovacast restart
don't worry—this is expected on modern Centova Cast installations.
The /etc/init.d/centovacast script has been removed from newer versions of Centova Cast. Instead, you should manage the service using systemd or the Centova Cast executable.
Solution
Restart the Centova Cast Service
On modern Linux distributions, restart the Centova Cast service using:
systemctl restart centovacast.service
To verify that the service is running:
systemctl status centovacast.service
Restart the Centova Cast Control Daemon (CCD)
If you only need to restart the Control Daemon (CCD), use the Centova Cast executable directly.
Stop the CCD
/usr/local/centovacast/centovacast stop-ccd
Start the CCD
/usr/local/centovacast/centovacast start-ccd fg
Note: The start-ccd fg command starts the Control Daemon in the foreground. Your terminal will remain occupied until you stop the process by pressing Ctrl + C or closing the SSH session.
Why Does This Error Occur?
Older Centova Cast versions included a legacy init script located at:
/etc/init.d/centovacast
This allowed administrators to manage the service using commands such as:
/etc/init.d/centovacast restart
or:
/etc/init.d/centovacast stop-ccd
/etc/init.d/centovacast start-ccd fg
Modern Centova Cast installations no longer include this init script. As a result, attempting to run these legacy commands returns the following error:
-bash: /etc/init.d/centovacast: No such file or directory
This behavior is expected and does not indicate that Centova Cast is missing or corrupted.
Recommended Commands for Modern Centova Cast
| Task | Command |
|---|---|
| Restart Centova Cast service | systemctl restart centovacast.service |
| Check service status | systemctl status centovacast.service |
| Stop Control Daemon (CCD) | /usr/local/centovacast/centovacast stop-ccd |
| Start Control Daemon (CCD) | /usr/local/centovacast/centovacast start-ccd fg |
Summary
If you encounter the error:
-bash: /etc/init.d/centovacast: No such file or directory
your server is running a newer Centova Cast installation that no longer supports the legacy /etc/init.d/centovacast script.
Use the following command to restart the Centova Cast service:
systemctl restart centovacast.service
Or use the Centova Cast executable to manage the Control Daemon (CCD):
/usr/local/centovacast/centovacast
Using these commands ensures compatibility with modern Centova Cast installations and avoids errors caused by deprecated service management methods.
