I am using service mkitapp.service to load machinekit configuration at BeagleBone boot and mklauncher.service for QtQuickVCP interfaces. But when I want to shut it down it either takes a lot of time or does not shut down at all.

As I traced, mkitapp.service is the only process delaying the shutdown. While mklauncher service exits fast enough. And as I could see, when running run.py manually, it does not like to return control to the shell after Ctrl+C...

My run.py:
-----------------
#!/usr/bin/python

import sys
import os
import subprocess
import time
from machinekit import launcher

launcher.register_exit_handler()
#launcher.set_debug_level(5)
os.chdir(os.path.dirname(os.path.realpath(__file__)))

try:
    launcher.check_installation()
    launcher.cleanup_session()
    launcher.load_bbio_file('furaday_cape.bbio')
#    launcher.install_comp('gantry.comp')
launcher.start_process("configserver -n glaz ../glazUI ../Cetus ../Machineface")
    launcher.start_process('machinekit glaz.ini')
    while True:
        launcher.check_processes()
        time.sleep(1)
except subprocess.CalledProcessError:
    launcher.end_session()
    sys.exit(1)

sys.exit(0)


And my mkitapp.service source file:
-----------------
[Unit]
Description=Starts Machinekit application configuration
After=syslog.target network.target mklauncher.service
; ap-hotspot.service
[Service]
Type=simple
; TODO: unify ExecStart string
ExecStart=/usr/bin/python /home/machinekit/machinekit/configs/autorun/run.py
TimeoutStopSec=7
User=machinekit
LimitMEMLOCK=33554432
[Install]
WantedBy=multi-user.target

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to