multiple cups-polld running simultaneously
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cupsys (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
hi,
I have to cups server in 2 different location. I have set up my master print server to retrieve printers of the second by adding this lines to /etc/cups/
"Browsing on
BrowsePoll jacinthe.
I can see and use the printers from the slave cups server...
the problem is that after a few days, the bandwith consumption growth gradually...
I've found that multiple IPP connection are established and multiple cups-poll process are running simultaneously.
mathieu@
tcp 0 0 mistouflon.
tcp 0 472 mistouflon.
tcp 0 0 mistouflon.
tcp 0 0 mistouflon.
tcp 0 0 mistouflon.
tcp 0 489 mistouflon.
tcp 0 0 mistouflon.
tcp 0 0 mistouflon.
mathieu@
22939 ? Ss 76:10 gnome-cups-icon --sm-client-id default3
23496 ? S 0:16 cups-polld jacinthe.
31935 ? SN 0:09 cups-polld jacinthe.
5219 ? SN 0:06 cups-polld jacinthe.
13046 ? SN 0:04 cups-polld jacinthe.
19678 ? SN 0:03 cups-polld jacinthe.
24967 ? SN 0:02 cups-polld jacinthe.
28033 ? SN 0:01 cups-polld jacinthe.
30397 ? S 0:00 cups-polld jacinthe.
30523 pts/1 S+ 0:00 grep cu
Stopping cups doesn't kill these processes :
mathieu@
* Stopping Common Unix Printing System: cupsd [ ok ]
mathieu@
22939 ? Ss 76:10 gnome-cups-icon --sm-client-id default3
23496 ? S 0:16 cups-polld jacinthe.
31935 ? SN 0:09 cups-polld jacinthe.
5219 ? SN 0:06 cups-polld jacinthe.
13046 ? SN 0:04 cups-polld jacinthe.
19678 ? SN 0:03 cups-polld jacinthe.
24967 ? SN 0:02 cups-polld jacinthe.
28033 ? SN 0:01 cups-polld jacinthe.
30397 ? S 0:00 cups-polld jacinthe.
30523 pts/1 S+ 0:00 grep cu
I have to kill them manually
mathieu@
mathieu@
22939 ? Ssl 76:10 gnome-cups-icon --sm-client-id default3
30532 pts/1 S+ 0:00 grep cu
mathieu@
* Starting Common Unix Printing System: cupsd [ ok ]
mathieu@
tcp 0 0 mistouflon.
tcp 0 0 mistouflon.
tcp 0 0 mistouflon.
tcp 0 0 mistouflon.
tcp 0 420 mistouflon.
tcp 0 0 mistouflon.
tcp 0 0 mistouflon.
tcp 0 0 mistouflon.
mathieu@
tcp 0 0 mistouflon.
is that normal ? is it a bug or a misconfiguration ?
regards
Mathieu
Changed in cupsys: | |
importance: | Undecided → Medium |
We were having the same problems here and it turned out that when cupsd was spawning off the cups-polld process, it was still running as root, so although cupsd was running as cupsys, cups-polld was running as root. When the init script killed cupsd (either though stop or restart), the cups-polld process was not killed. After many restarts, there could be several of these processes churning along in the background. The solution is (hopefully) simple. I've patched my init script to run the cupsd daemon initially as the cupsys user. I didn't experience any other issues related to this on our setups, but I'll continue testing. Our environment is Ubuntu Edgy with cupsys 1.2.4-2ubuntu3.
--- cupsys.orig 2006-10-09 12:54:23.000000000 -0400 usr/local/ sbin:/usr/ local/bin: /sbin:/ bin:/usr/ sbin:/usr/ bin /usr/sbin/ cupsd /var/run/ cups/$NAME. pid
+++ cupsys 2006-12-05 15:43:22.000000000 -0500
@@ -3,6 +3,7 @@
PATH=/
DAEMON=
NAME=cupsd
+CHUID=cupsys
PIDFILE=
DESC="Common Unix Printing System"
@@ -46,7 +47,7 @@
modprobe -q ppdev || true # for ISO-1284 device name detection
fi
- start-stop-daemon --start --quiet --oknodo --pidfile "$PIDFILE" --exec $DAEMON force-reload)
log_begin_ msg "Restarting $DESC: $NAME"
+ start-stop-daemon --start --quiet --oknodo --chuid ${CHUID} --pidfile "$PIDFILE" --exec $DAEMON
log_end_msg $?
;;
stop)
@@ -57,7 +58,7 @@
restart|
if start-stop-daemon --stop --quiet --retry 5 --oknodo --pidfile $PIDFILE --name $NAME; then
- start-stop-daemon --start --quiet --pidfile "$PIDFILE" --exec $DAEMON
+ start-stop-daemon --start --quiet --chuid ${CHUID} --pidfile "$PIDFILE" --exec $DAEMON
fi
log_end_msg $?
;;