You are not logged in.
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 foundi 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
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
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
The startup (after grub) is green instead of blue. Also, you may use
# pacman -Qs sysvinitand
# pacman -Qs systemdto see what you have installed.
Offline
The startup (after grub) is green instead of blue. Also, you may use
# pacman -Qs sysvinitand
# pacman -Qs systemdto 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 Toolsand
sudo pacman -Qs systemd
local/systemd 194-4
system and service manager
local/systemd-sysvcompat 194-4 (base)
sysvinit compat for systemdLast edited by lazarojhr16 (2012-10-21 16:14:18)
Offline
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
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/functionsand 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
I see on the home page that new installation use systemd by default. Try
# systemctl start cupsd.serviceOffline
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
You should really read the systemd page on the ArchWiki, so you can find out 1) what is systemd
and 2) how to start deamons on startup.
Offline
You should really read the systemd page on the ArchWiki, so you can find out 1) what is systemd
and 2) how to start deamons on startup.
Ok thank you.
Offline
Since it's working, please mark the thread as solved.
Last edited by pulce (2012-10-22 06:48:01)
Offline
pulce wrote:I see on the home page that new installation use systemd by default. Try
# systemctl start cupsd.serviceOk 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 cupsdor if that doesn't work
systemctl enable cupsFor some reason on my system I have to use cups NOT cups**d**
Last edited by bhrgunatha (2012-10-22 07:01:18)
Offline
lazarojhr16 wrote:pulce wrote:I see on the home page that new installation use systemd by default. Try
# systemctl start cupsd.serviceOk 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 cupsdor if that doesn't work
systemctl enable cupsFor 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