Nohup/setsid don't seem to work with Torizon

Hello @Sebtombs,

If you are using Torizon OS with Docker available, we recommend that you do this in a container. If your concern is hardware access, we have many guides on the topic and it is always possible to run containers with the --privileged in development.

That being said, if you really don’t want to use containers in your initial tests, an alternative to nohup would be to setup a SystemD service to run your application and start the service.

Here is a basic example of what the service file (/etc/systemd/system/myapp.service) might look like:

[Unit]
Description=My Application Service

[Service]
Type=simple
ExecStart=/home/torizon/myapp myargs

[Install]
WantedBy=multi-user.target

After creating this file, enable and start your service with:

sudo systemctl enable myapp.service # only needed if you want the application to auto-start at boot
sudo systemctl start myapp.service

Best Regards,
Bruno