10-28-2002
Found the following on SunSolve - hope it helps:
Quote:
After booting a system, trying to print gives an error message
as follows :
% lpr /etc/motd
lpr: connect: No such file or directory
jobs queued, but cannot start daemon.
%
% lpq
Warning: no daemon present
Rank Owner Job Files Total Size
1st ...
%
The /usr/lib/lpd process must be manually started in order for
printing to work successfully.
Problem Solution Top
Check the /etc/rc file and make sure the following section
is not commented out :
#if [ -f /usr/lib/lpd ]; then
# rm -f /dev/printer /var/spool/lpd.lock
# /usr/lib/lpd; echo -n ' printer'
#fi
If it is, uncomment this section in the /etc/rc file, and the
lpd daemon will automatically be started at boot-up time :
if [ -f /usr/lib/lpd ]; then
rm -f /dev/printer /var/spool/lpd.lock
/usr/lib/lpd; echo -n ' printer'
fi
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hi
how to write deamon program
i specified in detail i want to write c++ program when it run it run like deamon process (1 Reply)
Discussion started by: munnu
1 Replies
2. Solaris
hi i am able to see the snmpd service running in my machine. i would like to get activate snmptrapd deamon services in my solaris box, could any one suggest me in getting activate the snmptrapd service (0 Replies)
Discussion started by: praveen.yenegal
0 Replies
3. AIX
How will we check whether error deamon is started or not? any command is there? If it is not started how will we start the deamon. This server is highly critical server.
Pls, Let me know.
Thanks in advance. (1 Reply)
Discussion started by: pernasivam
1 Replies
4. UNIX for Dummies Questions & Answers
Hi experts,
I haved checked dir /etc/xinetd.d and there are no ftp and telnet files
in this dir
It means that the deamon's for ftp and telnet has not been installed on
my server or OS.
But,my question is in the same folder /etc/xinetd.d i have got files like:
echo netstat ....
so,... (1 Reply)
Discussion started by: salil2012
1 Replies
5. Red Hat
Hi everyone.
Now, i want to permit for an user to start, stop and reconfig some of daemon on Redhat system without root permission.
So how can i do ?
Tks all. (2 Replies)
Discussion started by: quan0509
2 Replies
6. AIX
we have several deamon processes which were killed for some unknown reasons. we have to bring the deamon back manually everytime. Deamons running on 2 identical instances. It is ok on one instance but be killed 3 or 4 times a day on another. Any idea how to monitor it? like who/how the processes be... (3 Replies)
Discussion started by: hamiltonhall
3 Replies
7. Linux
I have install centos on my server,.. then after rebooting 2 ,3 times , hal deamon cannot start, and system hang on boot.. when i google, i found the solution which is off the hal daemon service... my question is, what is the effect if i off the deamon service ?:confused:
tq (2 Replies)
Discussion started by: ultramen7
2 Replies
8. Solaris
Hi All,
What is the Solaris OS deamon which controls the Libraries?
Regards,
Rakesh. (2 Replies)
Discussion started by: rakesh.413
2 Replies
9. Solaris
Guys, I have a issue that I am trying to rectify please advise.
lpstat -t shows
scheduler is running
printer lext644 disabled since Mon Dec 02 19:48:18 2013. available.I have restarted the printer service and it shows online but the above says disabled. I have a lot of jobs in the print... (1 Reply)
Discussion started by: terrywhitejr
1 Replies
10. AIX
Hello,
In my HACMP cluster in 2 nodes, on active node, I have a core generated , so in errpt errors, I see BC3BE5A3 and the Failing Module is "clconfd" because "caavg_private" exists in this active node.
This deamon "clconfd" is inoperative.
Should I restart this deamon dynamically ?
Do... (2 Replies)
Discussion started by: LoLo92
2 Replies
LPQ(1) General Commands Manual LPQ(1)
NAME
lpq - spool queue examination program
SYNOPSIS
lpq [ +[ n ] ] [ -l ] [ -Pprinter ] [ job # ... ] [ user ... ]
DESCRIPTION
lpq examines the spooling area used by lpd(8) for printing files on the line printer, and reports the status of the specified jobs or all
jobs associated with a user. lpq invoked without any arguments reports on any jobs currently in the queue. A -P flag may be used to spec-
ify a particular printer, otherwise the default line printer is used (or the value of the PRINTER variable in the environment). If a +
argument is supplied, lpq displays the spool queue until it empties. Supplying a number immediately after the + sign indicates that lpq
should sleep n seconds in between scans of the queue. All other arguments supplied are interpreted as user names or job numbers to filter
out only those jobs of interest.
For each job submitted (i.e. invocation of lpr(1)) lpq reports the user's name, current rank in the queue, the names of files comprising
the job, the job identifier (a number which may be supplied to lprm(1) for removing a specific job), and the total size in bytes. The -l
option causes information about each of the files comprising the job to be printed. Normally, only as much information as will fit on one
line is displayed. Job ordering is dependent on the algorithm used to scan the spooling directory and is supposed to be FIFO (First in
First Out). File names comprising a job may be unavailable (when lpr(1) is used as a sink in a pipeline) in which case the file is indi-
cated as ``(standard input)".
If lpq warns that there is no daemon present (i.e. due to some malfunction), the lpc(8) command can be used to restart the printer daemon.
FILES
/etc/termcap for manipulating the screen for repeated display
/etc/printcap to determine printer characteristics
/usr/spool/* the spooling directory, as determined from printcap
/usr/spool/*/cf* control files specifying jobs
/usr/spool/*/lock the lock file to obtain the currently active job
SEE ALSO
lpr(1), lprm(1), lpc(8), lpd(8)
BUGS
Due to the dynamic nature of the information in the spooling directory lpq may report unreliably. Output formatting is sensitive to the
line length of the terminal; this can results in widely spaced columns.
DIAGNOSTICS
Unable to open various files. The lock file being malformed. Garbage files when there is no daemon active, but files in the spooling
directory.
4.2 Berkeley Distribution June 5, 1986 LPQ(1)