Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 582496

Summary: media-gfx/sane-backends[systemd] missing installation of saned systemd service unit files
Product: Gentoo Linux Reporter: Rick Harris <rickfharris>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: systemd
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 448882    
Attachments: saned@.service
saned.socket

Description Rick Harris 2016-05-09 01:40:01 UTC
Attached are saned service unit files for starting saned using systemd.

If media-gfx/sane-backends[-ipv6] then in saned.socket line:
  ListenStream=6566
should be changed to read:
  ListenStream=0.0.0.0:6566
to support ipv4 only.

To start/enable, use the saned.socket service unit.
eg. systemctl enable saned.socket

Have attached these as working with current systemd as the examples shown in 'man saned' are known to not work (and not just in Gentoo).

Used in this way it simulates the same functionality as the old (x)inetd.
ie. Listens on a port, only starts the daemon once something connects to the port and exits daemon when client disconnects.

Thanks :)
Comment 1 Rick Harris 2016-05-09 01:41:31 UTC
Created attachment 433700 [details]
saned@.service
Comment 2 Rick Harris 2016-05-09 01:42:06 UTC
Created attachment 433702 [details]
saned.socket
Comment 3 Pacho Ramos gentoo-dev 2017-09-27 10:49:52 UTC
I have imported those from Fedora adapted to Gentoo