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

Bug 485028

Summary: net-libs/openslp: add systemd service unit
Product: Gentoo Linux Reporter: Reuben Martin <reuben.m>
Component: Current packagesAssignee: Printing Team <printing>
Status: RESOLVED FIXED    
Severity: normal CC: systemd
Priority: Normal Keywords: NeedPatch
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 448882    

Description Reuben Martin 2013-09-15 17:34:42 UTC
Arch linux has a slpd service unit for reference.

https://projects.archlinux.org/svntogit/packages.git/plain/trunk/openslp.service?h=packages/openslp

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2013-09-18 21:11:15 UTC
I cannot even start slpd manually :/
# slpd -d -c /etc/slp.conf -r /etc/slp.reg -s /etc/slp.spi
USAGE: slpd [-d] [-c conf file] [-l log file] [-r reg file] [-s spi file] [-v version]
A FATAL Error has occured:
Invalid command line
Comment 2 Reuben Martin 2014-03-18 17:08:04 UTC
Sorry I apparently missed the replies to this report. Unfortunately some of the path options given are not actually used. The config file path seems to be hard coded.

I've been using the following service successfully:

[Unit]
Description=Service Location Protocol
After=network-online.target

[Service]
Type=forking
PIDFile=/run/slpd.pid
ExecStart=/usr/sbin/slpd -p /run/slpd.pid -l /var/log/slpd.log
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=network.target


Helps me be able to use and find some really really old clunky printers at work.
Comment 3 Pacho Ramos gentoo-dev 2014-03-30 10:19:04 UTC
+*openslp-1.2.1-r3 (30 Mar 2014)
+
+  30 Mar 2014; Pacho Ramos <pacho@gentoo.org> +files/slpd.service,
+  +openslp-1.2.1-r3.ebuild, openslp-2.0.0.ebuild:
+  Add unit file (#485028 by Reuben Martin)
+