Results 1 to 10 of 10

Hybrid View

  1. #1
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    Our script just determines LS_HOME by looking at the path of the launched script itself and moving up two directories.
    So it seems that you have run something like:
    /Lightstreamer/bin/unix-like/background_start.sh
    which is not what we expect from the launch through init.d.

    After running the install script (the "Debian" version for Ubuntu), you should have a properly configured /etc/init.d/lightstreamer script file.
    May you please attach this file (perhaps in txt form) for a check?

  2. #2
    The init.d script remains as per the install.

    running the background script was just to prove it works.


    #! /bin/sh
    ### BEGIN INIT INFO
    # Provides: Lightstreamer
    # Required-Start: $network
    # Required-Stop: $network
    # Should-Start:
    # Should-Stop:
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # Short-Description: Lightstreamer Server
    # Description: Lightstreamer Server, Real-Time Data Push - http://www.lightstreamer.com
    ### END INIT INFO


    set -e


    # Lightstreamer specific settings
    # LS_HOME=/opt/Lightstreamer
    LS_HOME="/Lightstreamer"
    # LS_USER=lightstreamer
    LS_USER="lightstreamer"
    # LS_GROUP=lightstreamer
    LS_GROUP="lightstreamer"


    DAEMON="${LS_HOME}/bin/unix-like/LS.sh"
    PIDFILE=/var/run/lightstreamer.pid


    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    DESC="Lightstreamer Server, Real-Time Data Push"
    NAME="Lightstreamer"


    test -x $DAEMON || exit 0


    . /lib/lsb/init-functions


    d_start() {
    start-stop-daemon --start --make-pidfile \
    --pidfile "${PIDFILE}" --oknodo \
    --background --user ${LS_USER} --group ${LS_GROUP} \
    --exec "${DAEMON}" -- run
    }


    d_stop() {
    start-stop-daemon --stop --pidfile "${PIDFILE}" --oknodo
    }




    case "$1" in
    start)
    log_daemon_msg "Starting ${DESC}" "${NAME}"
    d_start
    log_end_msg $?
    ;;
    stop)
    log_daemon_msg "Stopping ${DESC}" "${NAME}"
    d_stop
    log_end_msg $?
    ;;
    restart|force-reload)
    log_daemon_msg "Restarting ${DESC}" "${NAME}"
    d_stop
    d_start
    log_end_msg $?
    ;;
    status)
    status_of_proc -p "${PIDFILE}" "${DAEMON}" "${NAME}" && exit 0 || exit $?
    ;;
    *)
    echo "Usage: $0 {start|stop|restart|force-reload|status}" >&2
    exit 1
    ;;
    esac


    exit 0

  3. #3
    Here is a session I'm trying

    gmsuser@gmsgateway:/Lightstreamer/bin/unix-like$ sudo /etc/init.d/lightstreamer status[sudo] password for gmsuser:
    ● lightstreamer.service
    Loaded: loaded (/etc/systemd/system/lightstreamer.service; disabled; vendor preset: enabled)
    Active: inactive (dead)
    gmsuser@gmsgateway:/Lightstreamer/bin/unix-like$ sudo /etc/init.d/lightstreamer start
    [ ok ] Starting lightstreamer (via systemctl): lightstreamer.service.
    gmsuser@gmsgateway:/Lightstreamer/bin/unix-like$ sudo /etc/init.d/lightstreamer status
    ● lightstreamer.service
    Loaded: loaded (/etc/systemd/system/lightstreamer.service; disabled; vendor preset: enabled)
    Active: inactive (dead)


    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: Configured file descriptors, hard limit: 4096
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: Configured sysctl fs.file.* values:
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: fs.file-max = 367667
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: fs.file-nr = 1440 0 367667
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: Lightstreamer Server directory:
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: LS_HOME = "/Lightstreamer"
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: Lightstreamer Server main configuration file:
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: LS_CONFIG = "/Lightstreamer/conf/lightstreamer_conf.xml"
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: Starting Lightstreamer Server...
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: Please check logs for detailed information.
    gmsuser@gmsgateway:/Lightstreamer/bin/unix-like$
    lightstreamer is reported as running but it is not.

  4. #4
    hmmm.

    service not enabled!

    missing from your script or the instructions and I've been too close to the problem for the past week!

    now enabled via @> systemctl enable lightstreamer

    but sadly that appears to not address the problem.


    Last edited by nimbusgb; October 28th, 2019 at 11:42 AM.

 

 

Similar Threads

  1. newbie ask: Web client by pre-installed locally?
    By chenxun in forum Client SDKs
    Replies: 1
    Last Post: July 1st, 2010, 02:51 PM
  2. why need java sdk to run server
    By Eric.Patterson in forum General
    Replies: 2
    Last Post: May 16th, 2008, 01:43 PM
  3. How to config 2 adapter run on 01 server?
    By tuongkha in forum Adapter SDKs
    Replies: 2
    Last Post: March 18th, 2008, 09:11 AM
  4. Trying to run LS through Https / SSL
    By wmolde in forum Client SDKs
    Replies: 2
    Last Post: April 18th, 2007, 03:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 10:49 PM.