• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] No ssdp connection found
I solved this issue by adding sudo infront of the start-stop-daemon in the pilight init.d script.

Code:
#! /bin/sh
### BEGIN INIT INFO
# Provides:          pilight-daemon
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Starts pilight-daemon
# Description:       Starts pilight-daemon
#                  
### END INIT INFO
# Author: sweet pi & CurlyMo

# Do NOT "set -e"

# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin
NAME=pilight
DAEMON=/usr/local/sbin/pilight-daemon
#Should be the same as in: /etc/pilight/config.json
if [ -f /etc/pilight/config.json ] && [ $(grep -c pid-file /etc/pilight/config.json) -ge 1 ]; then
    PIDFILE=$(sed -ne 's/\(.*\)"pid-file":[\ ]\{0,\}"\(.*\)",/\2/p' /etc/pilight/config.json);
else
    PIDFILE="/var/run/pilight.pid"
fi
DAEMON_ARGS=
SCRIPTNAME=/etc/init.d/$NAME
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0

# Read configuration variable file if it is present
# [ -r /etc/default/$NAME ] && . /etc/default/$NAME

# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

# Define LSB log_* functions.
# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
# and status_of_proc is working.
. /lib/lsb/init-functions
VERBOSE=yes

#
# Function that starts the daemon/service
#
do_start()
{
    # Return
    #   0 if daemon has been started
    #   1 if daemon was already running
    #   2 if daemon could not be started
    sudo start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
        || return 1
    sudo start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON $DAEMON_ARGS \
        || return 2
    # Add code here, if necessary, that waits for the process to be ready
    # to handle requests from services started subsequently which depend
    # on this one.  As a last resort, sleep for some time.
}

#
# Function that stops the daemon/service
#
do_stop()
{
    # Return
    #   0 if daemon has been stopped
    #   1 if daemon was already stopped
    #   2 if daemon could not be stopped
    #   other if a failure occurred
    sudo start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE
    RETVAL="$?"
    # Many daemons don't delete their pidfiles when they exit.
    rm -f $PIDFILE
    return "$RETVAL"
}

case "$1" in
  start)
    if [ $(pkill -0 pilight-daemon 2>/dev/null; echo $?) -gt 0 ]; then
        [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
        do_start
        case "$?" in
            0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
            2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
        esac
    else
        status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
    fi
    ;;
  stop)
    [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
    do_stop
    case "$?" in
        0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
        2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
    esac
    ;;
  status)
    status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
    ;;
  restart|force-reload)
    #
    # If the "reload" option is implemented then remove the
    # 'force-reload' alias
    #
    log_daemon_msg "Restarting "$NAME""
    do_stop
    case "$?" in
      0|1)
        do_start
        case "$?" in
            0) log_end_msg 0 ;;
            1) log_end_msg 1 ;; # Old process is still running
            *) log_end_msg 1 ;; # Failed to start
        esac
        ;;
      *)
        # Failed to stop
        log_end_msg 1
        ;;
    esac
    ;;
  *)
    echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
    exit 3
    ;;
esac

:
Just copy it into /etc/init.d and replace the old one and reboot.
 
Reply
  


Messages In This Thread
[Solved] No ssdp connection found - by Hexcode - 12-20-2013, 02:09 AM
RE: [Solved] No ssdp connection found - by ferdyh - 05-21-2014, 02:17 PM
RE: [Solved] No ssdp connection found - by ferdyh - 05-21-2014, 06:26 PM
RE: [Solved] No ssdp connection found - by ferdyh - 05-21-2014, 08:58 PM
RE: [Solved] No ssdp connection found - by ferdyh - 05-21-2014, 09:19 PM
RE: [Solved] No ssdp connection found - by ferdyh - 05-28-2014, 07:40 PM
RE: [Solved] No ssdp connection found - by ferdyh - 05-28-2014, 08:26 PM
RE: [Solved] No ssdp connection found - by ferdyh - 05-28-2014, 08:28 PM
RE: [Solved] No ssdp connection found - by ferdyh - 05-28-2014, 08:48 PM
RE: [Solved] No ssdp connection found - by ferdyh - 06-02-2014, 02:40 PM
RE: [Solved] No ssdp connection found - by ferdyh - 06-02-2014, 03:12 PM
RE: [Solved] No ssdp connection found - by ferdyh - 06-04-2014, 09:24 AM
RE: [Solved] No ssdp connection found - by Rantir - 11-15-2014, 07:52 PM
RE: [Solved] No ssdp connection found - by takaze - 03-23-2015, 02:51 PM
RE: [Solved] No ssdp connection found - by takaze - 03-23-2015, 04:34 PM
RE: [Solved] No ssdp connection found - by takaze - 03-24-2015, 10:18 AM
RE: [Solved] No ssdp connection found - by Jens B. - 11-15-2015, 08:11 PM
RE: [Solved] No ssdp connection found - by Pjottr - 11-23-2015, 10:08 PM
RE: [Solved] No ssdp connection found - by terrar - 11-23-2015, 10:31 PM
RE: [Solved] No ssdp connection found - by Pjottr - 11-24-2015, 08:56 PM
RE: [Solved] No ssdp connection found - by Hauke - 08-25-2016, 09:45 PM
RE: [Solved] No ssdp connection found - by Remi - 03-05-2017, 10:37 AM
RE: [Solved] No ssdp connection found - by st.pi - 07-27-2017, 09:22 PM
RE: [Solved] No ssdp connection found - by Dergo - 09-11-2017, 09:11 PM
RE: [Solved] No ssdp connection found - by Lokus - 11-29-2017, 10:26 PM
RE: [Solved] No ssdp connection found - by Lokus - 11-29-2017, 11:44 PM
RE: [Solved] No ssdp connection found - by Lokus - 11-30-2017, 07:22 PM
RE: [Solved] No ssdp connection found - by HuberDe - 12-23-2017, 02:10 PM
RE: No ssdp connection found - by curlymo - 12-20-2013, 11:20 AM
RE: No ssdp connection found - by Hexcode - 12-20-2013, 12:01 PM
RE: No ssdp connection found - by curlymo - 12-20-2013, 12:07 PM
RE: No ssdp connection found - by Hexcode - 12-20-2013, 12:12 PM
RE: No ssdp connection found - by curlymo - 12-20-2013, 01:21 PM
RE: No ssdp connection found - by Hexcode - 12-20-2013, 03:12 PM
Steps to install - by 1000io - 03-16-2014, 08:58 PM
RE: Steps to install - by curlymo - 03-16-2014, 09:40 PM
Steps to install - by 1000io - 03-16-2014, 10:25 PM
RE: Steps to install - by curlymo - 03-16-2014, 10:35 PM
Steps to install - by 1000io - 03-16-2014, 10:42 PM
RE: Steps to install - by curlymo - 03-16-2014, 11:22 PM
RE: Steps to install - by 1000io - 03-17-2014, 12:29 PM
RE: Steps to install - by meloen - 03-17-2014, 12:48 PM
RE: Steps to install - by 1000io - 03-17-2014, 12:50 PM
RE: Steps to install - by curlymo - 03-17-2014, 04:02 PM
RE: Steps to install - by 1000io - 03-17-2014, 06:27 PM
RE: Steps to install - by curlymo - 03-17-2014, 07:40 PM
RE: Steps to install - by meloen - 03-17-2014, 08:57 PM
RE: Steps to install - by creamers - 03-17-2014, 10:22 PM
RE: Steps to install - by 1000io - 03-18-2014, 11:07 AM
Re: Steps to install - by creamers - 03-18-2014, 06:47 PM
Steps to install - by 1000io - 03-18-2014, 11:07 PM
RE: Steps to install - by meloen - 03-19-2014, 12:23 PM
RE: Steps to install - by curlymo - 03-19-2014, 12:31 PM
RE: Steps to install - by 1000io - 03-19-2014, 12:31 PM
RE: Steps to install - by meloen - 03-19-2014, 01:49 PM
RE: Steps to install - by creamers - 03-19-2014, 10:27 PM
RE: Steps to install - by curlymo - 03-19-2014, 11:01 PM
RE: Steps to install - by 1000io - 03-27-2014, 01:01 PM
RE: Steps to install - by curlymo - 03-27-2014, 01:18 PM
RE: Steps to install - by 1000io - 03-27-2014, 01:20 PM
RE: Steps to install - by curlymo - 03-27-2014, 01:38 PM
RE: Steps to install - by 1000io - 03-27-2014, 02:55 PM
RE: Steps to install - by curlymo - 03-27-2014, 05:11 PM
Steps to install - by 1000io - 03-27-2014, 05:39 PM
RE: Steps to install - by curlymo - 03-27-2014, 05:58 PM
RE: Steps to install - by 1000io - 03-28-2014, 09:20 AM
Re: Steps to install - by curlymo - 03-28-2014, 09:34 AM
RE: Steps to install - by 1000io - 03-28-2014, 10:20 AM
RE: Steps to install - by curlymo - 03-28-2014, 10:30 AM
RE: Steps to install - by 1000io - 03-28-2014, 10:42 AM
RE: Steps to install - by curlymo - 03-30-2014, 02:06 PM
RE: Steps to install - by meloen - 03-30-2014, 02:30 PM
Steps to install - by 1000io - 03-30-2014, 02:47 PM
RE: Steps to install - by 1000io - 04-01-2014, 12:52 PM
RE: Steps to install - by curlymo - 04-01-2014, 02:56 PM
Steps to install - by 1000io - 04-01-2014, 10:03 PM
RE: Steps to install - by curlymo - 04-01-2014, 10:23 PM
RE: Steps to install - by 1000io - 04-02-2014, 09:08 AM
RE: Steps to install - by curlymo - 04-02-2014, 09:46 AM
RE: Steps to install - by 1000io - 04-02-2014, 09:49 AM
RE: Steps to install - by curlymo - 04-02-2014, 10:08 AM
RE: Steps to install - by 1000io - 04-02-2014, 10:29 AM
RE: Steps to install - by curlymo - 04-02-2014, 10:45 AM
RE: Steps to install - by 1000io - 04-02-2014, 05:00 PM
RE: Steps to install - by curlymo - 04-02-2014, 05:32 PM
RE: Steps to install - by 1000io - 04-03-2014, 09:21 AM
RE: Steps to install - by curlymo - 04-03-2014, 09:55 AM
RE: Steps to install - by 1000io - 04-05-2014, 07:46 PM
RE: Steps to install - by curlymo - 04-05-2014, 07:56 PM
RE: Steps to install - by 1000io - 04-05-2014, 08:46 PM
RE: Steps to install - by curlymo - 04-05-2014, 08:54 PM
RE: Steps to install - by 1000io - 04-06-2014, 06:55 PM
RE: Steps to install - by curlymo - 04-06-2014, 09:02 PM
RE: Steps to install - by 1000io - 04-07-2014, 08:47 AM
RE: Steps to install - by creamers - 04-08-2014, 05:39 PM
Steps to install - by 1000io - 04-08-2014, 06:54 PM
RE: Steps to install - by curlymo - 04-08-2014, 07:06 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Connection lost, trying to reconnect — loop apartmedia 5 498 03-16-2019, 09:41 AM
Last Post: curlymo
  [solved] Webgui 404-Error PT-Biker 2 924 11-11-2017, 09:49 AM
Last Post: PT-Biker
  [solved] Hardware not compatible ccc.ggg73 1 1,430 06-10-2017, 09:10 AM
Last Post: curlymo
  Standalone but SSDP brenner23 6 2,354 04-16-2017, 11:34 PM
Last Post: brenner23
  [Solved] pilight ssdp celle 6 8,004 02-23-2017, 03:22 PM
Last Post: gneandr
  Raspbian jessie - pilight 7 - no pilight ssdp connections found shirocko 20 15,977 01-29-2017, 10:23 PM
Last Post: gneandr
  [solved] No signal with raw data andies 6 2,885 12-25-2016, 09:11 AM
Last Post: andies
  pilight without internet connection terrar 5 3,150 08-12-2016, 09:47 PM
Last Post: terrar
  ssdp discovery clach04 5 4,737 05-23-2016, 04:23 PM
Last Post: pilino1234
  Found Bug? boukehaarsma 8 3,940 01-27-2016, 11:07 PM
Last Post: boukehaarsma

Forum Jump:


Browsing: 1 Guest(s)