LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   -su: /etc/init.d/cups: No such file or directory (https://www.linuxquestions.org/questions/linux-newbie-8/su-etc-init-d-cups-no-such-file-or-directory-4175469148/)

Sefid par 07-10-2013 09:27 AM

-su: /etc/init.d/cups: No such file or directory
 
Recently I have installed Slackware, I want to use CUPS but when I try to use http://localhost:631/ I get nothing. And the port 631 is not listed in open ports found by Nmap.
I know that I have CUPS installed.
Code:

$cups-config --version
1.5.4

I tried to start the CUPS service by the following command but I got error:
Code:

# /etc/init.d/cups start
-su: /etc/init.d/cups: No such file or directory

What's wrong?

z01krh 07-10-2013 10:16 AM

Try /etc/init.d/cups status. See if the service is already running. Also some distros call it cupsd.
I don't know the command for chkconfig in Slackware but I would make sure the service is setup to run at boot and try a reboot.

Sefid par 07-10-2013 11:01 AM

There is no file named "cups" or "cupsd" in "/etc/init.d". Therefore no parameters can be used for any of these files in the "init.d" directory.

z01krh 07-11-2013 01:02 PM

Is there any files under /etc/cups? I am not sure if that is where it is installed under Slackware.
do a find for the cupsd.conf see if it installed at all. You will need to be root.
find /etc/ -iname "cupsd.conf" -exec ls -lh {} \;

If there is no cupsd.conf I am guessing the install failed.

Sefid par 07-11-2013 02:25 PM

Thanks for reply; Yes. The file "/etc/cups/cupsd.conf" is present.
Solved; As Philip sais:

Quote:

Originally Posted by Philip Lacroix (Post 4989037)
You will find the rc.cups script in /etc/rc.d/. You have to make it executable first, than you can start the service:

Code:

# chmod ugo+x /etc/rc.d/rc.cups
# /etc/rc.d/rc.cups start

Instead of running chmod you can also use pkgtool: go to Setup, then services, activate the CUPS server, exit and start it as above.

Best regards,
Philip



All times are GMT -5. The time now is 12:13 AM.