Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485028 - net-libs/openslp: add systemd service unit
Summary: net-libs/openslp: add systemd service unit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2013-09-15 17:34 UTC by Reuben Martin
Modified: 2014-03-30 10:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)
+