Auto-starting indiserver

  • Posts: 86
  • Thank you received: 5

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

Auto-starting indiserver - INDI Forum

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

  • Posts: 86
  • Thank you received: 5

Replied by Rob Meades on topic Auto-starting indiserver

Understood, -vvv a legacy from trying to figure out why things don't work.

Rob
8 years 5 months ago #7485

Please Log in or Create an account to join the conversation.

  • Posts: 983
  • Thank you received: 375
Hi
You can use startup scripts I wrote for INDI. These are inline with standard startup scripts for any service on linux.
1) place indiserver script in /etc/init.d/ and make it executable by running chmod 755 /etc/init.d/indiserver
2) place indi.conf in /etc/indi.conf
3) configure your drivers in /etc/indi.conf by changing DRIVERS variable
4) activate your new service by running sudo update-rc.d indiserver defaults
5) enjoy :-)

NOTE: rename attached files and remove .txt extention from their names - this is added to post it on the forum only.
To do this after downloading files BEFORE running the above procedure run: mv indiserver.txt indiserver && mv indi.conf.txt indi.conf

File Attachment:

File Name: indiserver.txt
File Size:2 KB

File Attachment:

File Name: indi.conf.txt
File Size:0 KB
Last edit: 8 years 5 months ago by Radek Kaczorek. Reason: typo
8 years 5 months ago #7504
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 86
  • Thank you received: 5

Replied by Rob Meades on topic Auto-starting indiserver

Ah, my Linux distribution is systemd I'm afraid, rather than init.d. I don't believe that you can use one with t'other.

Rob
8 years 5 months ago #7505

Please Log in or Create an account to join the conversation.


×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

  • Posts: 86
  • Thank you received: 5

Replied by Rob Meades on topic Auto-starting indiserver


Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

  • Posts: 66
  • Thank you received: 9

Replied by djibb on topic Auto-starting indiserver

This part has to be put on "tutorials".

"HOW TO LAUNCH INDISERVER at BOOT with systemd"

It works well :)
8 years 1 month ago #9450

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 2

Replied by Clément on topic Auto-starting indiserver

With the autostart capabilities that the INDI Web Manager now provides, it is not necessary to have a SystemD script for INDI anymore :) Just check the box "autostart" in the Web Manager and it will start INDI when the Web Manager starts.
8 years 1 month ago #9464

Please Log in or Create an account to join the conversation.

  • Posts: 66
  • Thank you received: 9

Replied by djibb on topic Auto-starting indiserver

YEP :)

It's a good idea... but there's a bug in systemd file to launch indiwebserver :
There's 2 ExecStart lines : indilib.org/support/tutorials/162-indi-web-manager.html
ExecStart=/usr/bin/python /home/odroid/servermanager/drivermanager.py
ExecStart=/usr/bin/python /home/odroid/servermanager/autostart.py

and service is an "idle" one. I've had a bug : with idle, only one line is accepted. So i've commented the second one :)... but no autostart capabilities anymore...
Last edit: 8 years 1 month ago by djibb.
8 years 1 month ago #9471

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 2

Replied by Clément on topic Auto-starting indiserver


Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

  • Posts: 66
  • Thank you received: 9

Replied by djibb on topic Auto-starting indiserver

thanks. it's done.
8 years 1 month ago #9475

Please Log in or Create an account to join the conversation.

Time to create page: 0.808 seconds