Welcome!

On this forum you can discuss iRidium with other users.

iRidium consist of 2 main components - i3 pro app and iRidium Server. Please post here your questions, ideas or errors you find.

Please send your questions to support team as a private messages.


Please subscribe to the Change Log to know our news

We have moved our support service to a new technical support system. Since 17.01.2022, we have disabled the ability to create appeals through the userecho personal account. Now all requests are processed via mail to support@iridi.com .

Thank you for your understanding and have a nice day.

0

Linux server start when PC starts, but cannot get to stop or restart

Hi

I have the following script that starts, stops and restarts iRidium server on Ubuntu


#!/bin/sh
### BEGIN INIT INFO
# Provides:          iridiumserver
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Should-Start:      $portmap
# Should-Stop:       $portmap
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Example initscript
# Description:       This file should be used to construct scripts to be
#                    placed in /etc/init.d.

### END INIT INFO

test -x /iridiumserver/iridium || exit 0
IRDIR=/iridiumserver
IREXE=$IRDIR/iridium
IRPID=$IRDIR/iridium.pid
IRPARAMS="--watchdog=10 --hidden"
USERID="root"

case "$1" in
start)
        echo -n "Starting iRidium server:"
        cd $IRDIR
        start-stop-daemon --start --chuid $USERID --chdir $IRDIR --make-pidfile --pidfile $IRPID    --exec $IREXE -- $IRPARAMS &
        echo "."
        ;;

stop)
        echo -n "Stopping iRidium server:"
        start-stop-daemon --stop --quiet --pidfile $IRPID
        if [ -e $IRPID ]
                then rm $IRPID
        fi
        echo "."  ;;

restart)
        echo -n "Restarting iRidium server:"
        cd $IRDIR
        start-stop-daemon --stop --quiet --pidfile $IRPID
        start-stop-daemon --start --chuid $USERID --chdir $IRDIR --make-pidfile --pidfile $IRPID    --exec $IREXE -- $IRPARAMS &  echo "."  ;;
*)
        echo "Usage: /etc/init.d/iridiumserver (start|stop|restart)"
        exit 1
        ;;

esac
exit 0


Then run the following commands in the terminal to get this to work

//move the above script to the startup folder

 cp home/linux/Downloads/iridiumserver /etc/init.d/iridiumserver

//change permissions to be executable

sudo chmod +x /etc/init.d/iridiumserver

//add the script to the startup

  sudo update-rc.d iridiumserver defaults 10

Now can run the script manually to test

  sudo /etc/init.d/iridiumserver

Result:

 Usage: /etc/init.d/iridiumserver (start|stop|restart)

 sudo /etc/init.d/iridiumserver start

Result:

  Starting iRidium server:.
   =================== Start as Daemon ===================
   Main thread exit

//enter CTL + C to get back to the terminal

  ^C

Test by rebooting

sudo shutdown -r now


The iRidium server starts.


But I cannot get the stop and restarts to work. It says cannot find the pid, and running the second time says stopping, but it does not actually stop.


Any suggestions please?


Thanks


0

Linux Server User Documents Directory Name

Jackie Roos 8 years ago in Server Solutions / Linux Server updated 8 years ago 0

Hi

On Linux, the name of the user documents "iRidium Server", with the space between iRidium and Server means to use this directory name in the command line means we must always put "" around it.


Can you please change to iRidiumServer, without the space.


Thanks


0

Linux iRidium daemon does not keep running

Hi

On Ubuntu 16.04


start iRidium: sudo ./iridium --hidden


It will run for a minute or so and then stops - connected clients go offline and system monitor no longer shows the iRidium process


is there anything else I need to do to get this to work as a daemon?

thanks :)

0
Waiting for user's reply

What Linux for iRidium 3 Server?

Martin Lang 8 years ago in Server Solutions / Linux Server updated 8 years ago 6

Hi, when using a new Linux installation for iRidium 3 Server, what Linux Distribution do you prefer?


Thx!

0
Waiting for user's reply

autostart linux server

Erik van den Brink 9 years ago in Server Solutions / Linux Server updated by Jackie Roos 8 years ago 3

Hello,


Is there a command or setting to autostart the server on a linux device?

Also the "W" button shortcut isn't working in the server i think this need's to be checked.

I'm using a PC running Xubuntu 16.04 LTS

0
Waiting for user's reply

Запись информации в БД​

George Petrov 9 years ago in Server Solutions / Linux Server updated by Oksana (expert) 9 years ago 4

Platform: Raspberry Pi 2 Model B

OS: Raspbian Jessie 4.1

iRidium Server: 1.0.0.7946

Web-panel: v1.0.0.20


На tag = KNX IP Router.Температура из системы KNX раз в 10 секунд получаем значение температуры. На графике точки данных располагаются неравномерно, данные записываются с точностью до минуты. Выгрузка данных в CSV приложена. Получается, что мы не можем работать с процессами, которые изменяются чаще, чем раз в минуту.


Image 11814


KNX IP Router.Температура.csv

Answer
Oksana (expert) 9 years ago

Здравствуйте,


Пришлите пожалуйста ваш проект