Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:branches:openSUSE:Factory:Rings:1-MinimalX
openslp
openslp.sd_notify.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openslp.sd_notify.diff of Package openslp
--- ./configure.ac.orig 2013-06-08 04:58:54.000000000 +0000 +++ ./configure.ac 2018-04-11 12:36:14.299642065 +0000 @@ -35,6 +35,10 @@ AC_CHECK_LIB([nsl], [gethostbyname]) AC_CHECK_LIB([m], [log10]) AC_CHECK_LIB([pthread], [pthread_create]) +PKG_PROG_PKG_CONFIG + +PKG_CHECK_MODULES([SYSTEMD], [libsystemd]) + # # Checks for header files # --- ./slpd/Makefile.am.orig 2018-04-11 12:35:51.810698096 +0000 +++ ./slpd/Makefile.am 2018-04-11 12:36:14.300642062 +0000 @@ -95,5 +95,5 @@ noinst_HEADERS = \ slpd_initda.h #if you're building on Irix, replace .la with .a below -slpd_LDADD = ../common/libcommonslpd.la ../libslpattr/libslpattr.la +slpd_LDADD = $(SYSTEMD_LIBS) ../common/libcommonslpd.la ../libslpattr/libslpattr.la --- ./slpd/slpd_main.c.orig 2018-04-11 12:35:51.814698086 +0000 +++ ./slpd/slpd_main.c 2018-04-11 12:38:04.513363806 +0000 @@ -59,6 +59,8 @@ #include "slp_net.h" #include "slp_network.h" +#include <systemd/sd-daemon.h> + int G_SIGALRM; int G_SIGTERM; int G_SIGHUP; @@ -704,6 +706,9 @@ int main(int argc, char * argv[]) /* init watcher */ SLPDDatabaseWatcher(); + /* tell systemd what we are ready */ + sd_notify(0, "READY=1"); + /* drop privileges to reduce security risk */ if (DropPrivileges()) SLPDFatal("Could not drop privileges\n");
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor