Discussion:
purpose of hpssd
Tim Waugh
2007-10-31 11:52:25 UTC
Permalink
What is the purpose of hpssd? It seems that some commands, such as
hp-info, will start hpssd and leave it running. Is that intentional?
Should that be running as the user who invoked (e.g.) hp-info, or is it
meant to be system-wide?

Thanks,
Tim.
*/
dwelch91
2007-10-31 16:29:21 UTC
Permalink
Hi, Tim,

Well, at this point, hpssd is kind of a carry-over from pre-hpmud releases
when we had two separate startup time daemons (hpiod and hpssd). I have
plans to remove hpssd from the system, but as of right now, it is performing
some functions that I cannot easily move to a non-daemon process. It is by
design that the first user of HPLIP will start hpssd if it is not running.

Currently, hpssd's main functions have to do with:

1. Routing events from hp:, hpfax:, and other event sources to one or more
event sinks (hp-toolbox, etc)
2. Routing fax data from hpfax: to hp-sendfax
3. Saving a device's event buffer
4. I few other misc generic functions like caching device values that are
expensive to retrieve

My plan to replace hpssd involves:

1. For event routing, use dbus
2. For fax data routing, move the fax send code to hpfax: and then
communicate with a UI using some IPC mechanism, perhaps dbus
3. For saving the event buffer and caching device values, I do not currently
have a plan

One idea I have is to implement a "system tray icon" that would replace the
daemon-like hpssd process, but would allow the user to control its
start/stop explicitly, and 1 process would run per-user. This would allow me
to easily handle items 3 and 4. I am waiting on moving ahead on this because
of my planned port to Qt4. Qt4 has a tray icon class that would make
design/implementation of this easier.

Thanks,

Don
Post by Tim Waugh
What is the purpose of hpssd? It seems that some commands, such as
hp-info, will start hpssd and leave it running. Is that intentional?
Should that be running as the user who invoked (e.g.) hp-info, or is it
meant to be system-wide?
Thanks,
Tim.
*/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
HPLIP-Devel mailing list
https://lists.sourceforge.net/lists/listinfo/hplip-devel
Loading...