You are not logged in.

#1 2012-10-21 15:25:36

lazarojhr16
Member
Registered: 2012-10-21
Posts: 35

[SOLVED] I need some help fixing CUPS, it stoped working

hello i'm new here and have been trying to figure out what happended to cups. I installed Arch yesterday and after following the wiki, i had cups working and connected to my ubuntu server( where my printer is) i printed a test page and it was working. this morning cups is not working anymore, i had turn off my computer. the cupsd daemon is in my rc.conf file, but when i do

/etc/rc.d/cupsd restart  i get the following:

/etc/rc.d/cupsd: line 6: /etc/rc.d/functions: No such file or directory
/etc/rc.d/cupsd: line 6: /etc/rc.d/functions: No such file or directory
/etc/rc.d/cupsd: line 38: stat_busy: command not found
/etc/rc.d/cupsd: line 44: stat_fail: command not found
/etc/rc.d/cupsd: line 6: /etc/rc.d/functions: No such file or directory
/etc/rc.d/cupsd: line 15: stat_busy: command not found
/etc/rc.d/cupsd: line 21: /usr/sbin/cupsd: Permission denied
/etc/rc.d/cupsd: line 24: stat_fail: command not found

i don't know how to fix it. when i go to http://localhost:631   i'm unable to connect.

this is my /etc/rc.conf :

#
# /etc/rc.conf - configuration file for initscripts
#
# Most of rc.conf has been replaced by various other configuration
# files. See archlinux(7) for details.
#
# For more details on rc.conf see rc.conf(5).
#

DAEMONS=(syslog-ng network crond sshd acpid dbus alsa cupsd)

# A reasonable DAEMONS array when using sysvinit is:
# DAEMONS=(syslog-ng network crond)
#
# When using systemd, it is recommended to only enable daemons that
# do not have native systemd service files.

# Storage
#
# USEDMRAID="no"
# USELVM="no"

# Network
#
 interface=eth0
 address=
 netmask=
 gateway=

# Modules
MODULES=(fglrx dbus pulseaudio equalizer microcode)

I can post anything you guys need me to post here, sorry if its not enough information, i'm still new to linux all together. thanks for the help.

Last edited by lazarojhr16 (2012-10-22 17:06:00)

Offline

#2 2012-10-21 15:45:22

pulce
Member
From: Italy
Registered: 2011-02-14
Posts: 64

Re: [SOLVED] I need some help fixing CUPS, it stoped working

I'm not sure this is related to your problem, but are you using systemd? Also, I believe it's better to use [ code] [/ code] tags to post your files.

Offline

#3 2012-10-21 15:55:48

lazarojhr16
Member
Registered: 2012-10-21
Posts: 35

Re: [SOLVED] I need some help fixing CUPS, it stoped working

pulce wrote:

I'm not sure this is related to your problem, but are you using systemd? Also, I believe it's better to use [ code] [/ code] tags to post your files.


How do i know if i'm using systemd? I remember something about after I had install the system but don't remember. Is there a way to know if i'm using systemd? Also thanks for the tip on the code tags.

Offline

#4 2012-10-21 16:03:33

pulce
Member
From: Italy
Registered: 2011-02-14
Posts: 64

Re: [SOLVED] I need some help fixing CUPS, it stoped working

The startup (after grub) is green instead of blue. Also, you may use

# pacman -Qs sysvinit

and

# pacman -Qs systemd

to see what you have installed.

Offline

#5 2012-10-21 16:09:03

lazarojhr16
Member
Registered: 2012-10-21
Posts: 35

Re: [SOLVED] I need some help fixing CUPS, it stoped working

pulce wrote:

The startup (after grub) is green instead of blue. Also, you may use

# pacman -Qs sysvinit

and

# pacman -Qs systemd

to see what you have installed.

this is what i get :

sudo pacman -Qs sysvinit

local/systemd-sysvcompat 194-4 (base)
    sysvinit compat for systemd
local/sysvinit-tools 2.88-9
    Linux System V Init Tools

and

sudo pacman -Qs systemd

local/systemd 194-4
    system and service manager
local/systemd-sysvcompat 194-4 (base)
    sysvinit compat for systemd

Last edited by lazarojhr16 (2012-10-21 16:14:18)

Offline

#6 2012-10-21 16:17:11

pulce
Member
From: Italy
Registered: 2011-02-14
Posts: 64

Re: [SOLVED] I need some help fixing CUPS, it stoped working

No, that just means that it is installed, as well as is sysvinit. To start systemd you should have something like "init=/usr/lib/systemd/systemd" in you /etc/default/grub but that's not the point right now.

Do you have the /etc/rc.d/functions file? Also, are you restarting the daemon as root or as normal user?

Offline

#7 2012-10-21 16:21:58

lazarojhr16
Member
Registered: 2012-10-21
Posts: 35

Re: [SOLVED] I need some help fixing CUPS, it stoped working

pulce wrote:

No, that just means that it is installed, as well as is sysvinit. To start systemd you should have something like "init=/usr/lib/systemd/systemd" in you /etc/default/grub but that's not the point right now.

Do you have the /etc/rc.d/functions file? Also, are you restarting the daemon as root or as normal user?

No, I go to

sudo nano /etc/rc.d/functions

and it says that its a new file(its empty)

Also, I tried restarting the daemon as both root and my normal user.

Edit: I'm using gnome3 fallback mode. Don't know if this is relevant.

Last edited by lazarojhr16 (2012-10-21 16:31:29)

Offline

#8 2012-10-21 16:51:21

pulce
Member
From: Italy
Registered: 2011-02-14
Posts: 64

Re: [SOLVED] I need some help fixing CUPS, it stoped working

I see on the home page that new installation use systemd by default. Try

# systemctl start cupsd.service

Offline

#9 2012-10-21 17:00:43

lazarojhr16
Member
Registered: 2012-10-21
Posts: 35

Re: [SOLVED] I need some help fixing CUPS, it stoped working

pulce wrote:

I see on the home page that new installation use systemd by default. Try

# systemctl start cupsd.service

Ok that worked. So this means I'm using systemd. Now my question would be how can i make it start on boot because i have the cups daemon (cupsd) on the rc.conf file. but it doesn't start on boot. Thanks for all the help.

Offline

#10 2012-10-21 17:02:56

pulce
Member
From: Italy
Registered: 2011-02-14
Posts: 64

Re: [SOLVED] I need some help fixing CUPS, it stoped working

You should really read the systemd page on the ArchWiki, so you can find out 1) what is systemd wink and 2) how to start deamons on startup.

Offline

#11 2012-10-21 17:03:30

lazarojhr16
Member
Registered: 2012-10-21
Posts: 35

Re: [SOLVED] I need some help fixing CUPS, it stoped working

pulce wrote:

You should really read the systemd page on the ArchWiki, so you can find out 1) what is systemd wink and 2) how to start deamons on startup.

Ok thank you.

Offline

#12 2012-10-22 06:46:49

pulce
Member
From: Italy
Registered: 2011-02-14
Posts: 64

Re: [SOLVED] I need some help fixing CUPS, it stoped working

Since it's working, please mark the thread as solved.

Last edited by pulce (2012-10-22 06:48:01)

Offline

#13 2012-10-22 07:00:13

bhrgunatha
Member
Registered: 2009-12-16
Posts: 103

Re: [SOLVED] I need some help fixing CUPS, it stoped working

lazarojhr16 wrote:
pulce wrote:

I see on the home page that new installation use systemd by default. Try

# systemctl start cupsd.service

Ok that worked. So this means I'm using systemd. Now my question would be how can i make it start on boot because i have the cups daemon (cupsd) on the rc.conf file. but it doesn't start on boot. Thanks for all the help.

To get it to start on boot run:

systemctl enable cupsd

or if that doesn't work

systemctl enable cups

For some reason on my system I have to use cups NOT cups**d**

Last edited by bhrgunatha (2012-10-22 07:01:18)

Offline

#14 2012-10-22 17:05:17

lazarojhr16
Member
Registered: 2012-10-21
Posts: 35

Re: [SOLVED] I need some help fixing CUPS, it stoped working

bhrgunatha wrote:
lazarojhr16 wrote:
pulce wrote:

I see on the home page that new installation use systemd by default. Try

# systemctl start cupsd.service

Ok that worked. So this means I'm using systemd. Now my question would be how can i make it start on boot because i have the cups daemon (cupsd) on the rc.conf file. but it doesn't start on boot. Thanks for all the help.

To get it to start on boot run:

systemctl enable cupsd

or if that doesn't work

systemctl enable cups

For some reason on my system I have to use cups NOT cups**d**

thank you. After reading up on systemd I did systemctl enable cupsd and is not working, you saved the day, the second one works (using cups not cupsd)

Offline

Board footer

Powered by FluxBB