2,645 questions
Best practices
0
votes
2
replies
48
views
Packaging a python application that depends on other servers running
I am developing a LangGraph project with uv. It makes use of LangGraph's implementation of the model context protocol to interface with a number of third-party services, among them an interface for ...
0
votes
1
answer
115
views
How to accurately detect run time in linux?
I have a binary sample (VirusShare_00238010bb86fd0bf4014c3d19f114b2) used in my research that behaves oddly when I try to measure its runtime
When I run it directly with /usr/bin/time, it exits almost ...
0
votes
1
answer
116
views
Gradle build daemon disappeared unexpectedly when building Flutter APK on Mac M2
I’m trying to build a Flutter APK on my Mac Mini (M2, macOS Sonoma) using the latest stable Flutter version (3.35.1) and Gradle (8.12).
When I run:
flutter build apk --split-per-abi
the build fails ...
1
vote
0
answers
363
views
Flutter device daemon fails to start after Android Studio “Narwhal” update (exit code 1)
I just updated Android Studio to Narwhal (version 2025.X), and now although:
adb devices shows my realme RMX2076
My phone USB‑debug dialog appears and accepts the computer
Virtual emulators still ...
0
votes
0
answers
50
views
VM: Page Default Error thrown when accepting Unix Socket connection
I am currently trying to make a server daemon in minix 3 for an assignment using UNIX sockets, upon hitting the accept line the process is core dumped and thrown with the error:
VM: pagefault: SIGSEV ...
0
votes
1
answer
83
views
Implementing a rc script to launch a custom service
I have a proprietary service inside a FreeBSD 14 jail that I launch as follows:
/opt/bin/rserver_tcp >> /var/log/rserver_tcp.log 2>&1
This is a blocking service which uses stdout and ...
0
votes
0
answers
154
views
Could not connect to Kotlin compile daemon
Launching lib\main.dart on SM A235F in debug mode...
e: Daemon compilation failed: Could not connect to Kotlin compile daemon
java.lang.RuntimeException: Could not connect to Kotlin compile daemon
at ...
0
votes
1
answer
520
views
Meta Graph API: How to get a Permanent Access Token for Internal Daemon App?
I'm developing a Python daemon application intended to run continuously in the background and interact programmatically with an internal Facebook page using the Meta Graph API. I've been struggling to ...
1
vote
1
answer
404
views
How to start a daemon in background during Docker container startup?
I am trying to run a custom Python-based server (queue server) daemon in a Docker container, which communicates via sockets and operates similarly to standard Linux daemons.
The server works when ...
0
votes
0
answers
32
views
Why does ECS REPLICA service tasks run in Draining instance but not the DAEMON service task?
I have setup nginx and backend service in ECS. My tasks are running in 2 different EC2 instances. I also have a fluent-bit service running as DAEMON which is responsible to send the application logs ...
1
vote
0
answers
72
views
How should I create a background process that communicates with many instances of a shell in a performant way?
I'm working on a syntax highlighter for the zsh ZLI, which I'm writing in rust. Essentially it consumes text from zsh, and returns text which represents the highlighted syntax. Perhaps this would be ...
2
votes
0
answers
287
views
Docker Desktop not opening but Docker Desktop is running in the background
I am new to Docker. I tried to open Docker Desktop, I am pretty sure that an application should open up, but it didn't. Nothing happened and no output came to me, but when I open up task manager, it ...
0
votes
0
answers
36
views
Stopping daemon/nginx to edit index.js file then restart daemon/nginx on EC2 Linux
I went through the process below to create a "Running Node.js API on Amazon Linux EC2 with Custom Domain and SSL Certificate"
https://resonant-cement-f3c.notion.site/Running-Node-js-API-on-...
0
votes
1
answer
2k
views
How to run my python-web-application as systemd-daemon?
I have a web application written with the FastAPI framework in Python that will be served by Nginx. I wanted to add the application as a system daemon so that it can restart automatically.
My problem: ...
0
votes
1
answer
109
views
FreeBSD: Daemonize a Script
I have written a simple NodeJS application and I would like to have FreeBSD launch it, and if the application ever crashes or terminates for any reason, relaunch it. The goal is for this application ...
0
votes
0
answers
170
views
Get "https://google.com": tls: failed to verify certificate: SecPolicyCreateSSL error: 0 when running in child
Here is the main.go you can reproduce with using go run main.go:
package main
import (
"encoding/json"
"fmt"
"io"
"log"
"net/http"...
0
votes
1
answer
232
views
How to create daemon unit for fastapi server with poetry?
I created a shell script for start my fastapi server which located in my-dir. It works properly when I run it with ./script.sh. Server runs.
#!/bin/bash
poetry run python main.py
Now I want to ...
0
votes
1
answer
253
views
Can I use a python script to run as a daemon with async libs or do I need to use subprocess?
I need to run a quick experiment with python.
However, I am stuck with an async issue. I am not very familiar with python async programming, so please bear with me.
What I want is to run a script ...
1
vote
1
answer
227
views
Send `kill -SIGUSR1` to daemon process
Suppose you have a daemon process owned by user foo and group foo and can be initiated via sudo systemctl start foo.service.
This daemon spends most of its time waiting on a sub process sleep, but can ...
0
votes
1
answer
97
views
Failure on deploying node.js applications in cpanel
Unfortunately I'm having difficulties hosting my node.js application. I'm having errors and failures. Firstly, cpanel said that there was a possible error in package.json, it said that it contained ...
0
votes
1
answer
180
views
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
On my local machine it runs well. on CircleCi it fails with this error.
I'm using java 17.
gradle 8.5
and the following -
org.gradle.jvmargs=-Xmx4G -Dkotlin.daemon.jvm.options=-Xmx2G
-XX:+...
0
votes
0
answers
20
views
sys.stdin.readline() in an inittab
I am using sys.stdin.readline() to to hang the execution of a Python script, to keep it persistent. When I put this script in an inittab and it comes time to log into Linux after rebooting, hitting ...
0
votes
1
answer
68
views
Using the rust tracing library with daemonize
I would like to use the tracing library together with deamonize.
Consider the following example
use tracing::info;
use tracing_subscriber::layer::SubscriberExt;
use tracing_subscriber::{fmt, Registry};...
1
vote
1
answer
61
views
Opening 0,1,2 descriptors when creating daemon process
APUE (Figure 13.1) says for creating a daemon, after closing all open file descriptors, attach the descriptors 0,1,2 to /dev/null as follows:
/*
* Close all open file descriptors.
*/
if (rl.rlim_max ==...
0
votes
1
answer
145
views
Python as a service in docker or cron?
What is the python script doing?
I have implemented leader election for Artemis ActiveMQ Primary-Backup HA. This checks the availability of ActiveMQ pods and updates the labels in the pod(The label of ...
0
votes
1
answer
178
views
How to deploy a Python controller via Azure devops pipeline
I am working on creating a basic azure pipeline which is expected to do following tasks:
Pull Python code from github
Run the python controller via gunicorn
deployment server is a Linux VM in ...
0
votes
0
answers
156
views
Daemon. AttributeError: 'NoneType' object has no attribute 'fileno'
Please help me with the error. I have a simple code that I run on Linux.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import daemon
import sys
from traceback import format_exc
def ...
0
votes
1
answer
101
views
Flutter Android Studio Device Loading Issue: Device Daemon Fails to Start. Please Check Configuration and Restart IDE
I am encountering a problem with Android Studio; the devices are not loading when I start it. I have run 'flutter doctor', and it shows no issues. I've also tried upgrading Flutter, reinstalling the ...
2
votes
0
answers
91
views
How can I use the windows kubernetes image through Jenkins?
I am trying to create a daemonset using the image
FROM mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image:v1.0.0
following the following documentation https://samcogan.com/...
0
votes
0
answers
41
views
socks daemon on Lua
I'm newbie in Lua, but have an experience in PHP.
I have a project on PHP which is a demon that receives data from one socket and distributes data to connected clients via websocket. The project is ...
0
votes
1
answer
216
views
Long running Daemon on Android - Best Approach
I have an android target tablet that will be deployed to a vehicle. The tablet will be connected to two serial devices and needs to have a process on board that will send periodic readings,once every ...
0
votes
0
answers
284
views
Opening TCP Socket to Docker Not Working With Known Configuration Methods
Attempting to open the TCP socket to my docker daemon so I can use an integration with Home Assistant to interface with Docker and control containers remotely.
I first attempted this method which ...
1
vote
0
answers
230
views
Fail to get expected network interfaces by `getifaddrs` within a custom daemon service when booting up
I have developed a daemon program which can get all up interfaces and print their names and other properties. It works fine when my system is running, but failed to list these interfaces after ...
0
votes
0
answers
45
views
Gradle sync. failing on Android Studio
Build file 'C:\Users\hp\AndroidStudioProjects\java projects\MyfirstApplication\build.gradle.kts' line: 2
Plugin [id: 'com.android.application', version: '8.2.1', apply: false] was not found in any of ...
1
vote
1
answer
364
views
Multiprocessing not allowed in pytorch training
I tried setting up multiple sub-processes, and using PyTorch to train a separate model on a separate dataset within each sub-process. Here is my code: (no cuda/GPU involved yet)
#######################...
0
votes
1
answer
235
views
Spring Boot App fails when run as a service but works fine when run from command line
I am running an Ubunut Linux Server and I am trying to run my Spring Boot Application as a service.
I have created a file in /etc/systemd/system/example.service with the following content:
[Unit]
...
1
vote
0
answers
70
views
cannot build an app in android studio using kotlin
java.io.filenotfoundexception: c:\users\jong1\androidstudioprojects\jon5\app\build\tmp\kotlin-classes\debug\com\scottishparanormal\jon5\mainactivity.class (the system cannot find the path specified)
...
0
votes
2
answers
699
views
Can there be zombie threads in a java program?
Consider the folowing code:
public... main( String[] args ) // yeah yeah, I'm too lazy to type it out
new ThreadExample().start(); // the run function just prints out "this is run"
}
...
0
votes
0
answers
41
views
Ubuntu service not logging errors in a different file
I have created a Telegram bot using Java and I'm hosting it in an Ubuntu server.
I configured the service with the following code:
[Unit]
Description=Telegram bot service daemon
[Service]
...
0
votes
3
answers
151
views
How to dynamically add daemon & to end of curl
On my first run I need curl to run and wait for response. DB has a trigger that updates a field and I need to wait for that. Then on all my other curls to run on separate threads. I cannot use the ...
0
votes
1
answer
359
views
Daemonize process in Linux bash
What is the most convenient way to interact with a rust library that needs to keep track of some internal state in the background.
For instance I have the following program:
use tokio::io::...
1
vote
0
answers
50
views
How can I create a simple daemon that spawns other daemons in C?
I am trying to create a simple daemon that does nothing (just stays alive) and listens for a SIGTERM. Whenever it receives a SIGTERM signal, it should fork() itself and create a child that behaves ...
0
votes
0
answers
71
views
Life Cycle of Daemon thread and Non Daemon Thread in Django
I'm trying to execute a long-running process (sending mail to around 600 people) using threading module. My Django view and email processing function goes like this:
def daily_wap(request):
...
1
vote
1
answer
1k
views
Is there a difference if we setup seccomp on docker daemon or directly when running?
I saw that there is two ways to setup a seccomp profile into docker, the first one by adding it to the configuration file of the docker daemon :
{
"seccomp-profile": "/etc/docker/...
0
votes
0
answers
61
views
Is there a daemon, service, utility, or program for automatically keeping track of local file content hashes?
We have a large number of files (~2,000,000), on a local disk, that we'd like to keep tabs on.
An idea is to get a hash (MD5 is the first thought, though the particular algorithm isn't that important ...
-1
votes
1
answer
559
views
systemd service daemon and /dev/shm
I have a systemd service file that starts an application developed in C++ which creates a semaphore using
access_sem = sem_open("/sync_nvme_access_sem", O_CREAT, 0666);
if (access_sem == ...
0
votes
1
answer
60
views
Blazor - running a nightly process
I plan to have my server app running on Azure on 2+ servers each on 3 datacenters. I need to run a nightly process that closes all items that completed that day. Completion is datetime based, there is ...
0
votes
1
answer
172
views
Child doesn't execute after double fork in systemd
I have this C code to daemonize a systemd service:
static void daemon_me(char *my_name) {
pid_t new_pid;
struct sigaction sig_act;
int i;
int f0, f1, f2;
int my_mask;
umask(0);
...
1
vote
2
answers
3k
views
Failed to start ADB server
I've been using adb earlier, and everything was ok. But since then some time has passed, and my system met with some changes, some services been switched off for example. Now I need to use adb again, ...
1
vote
0
answers
108
views
Standard way to send data to running python script?
I have a "server" python script which has a while True loop which watches a text file and processes the data in the file whenever it is updated.
I'd like to be able to send the text data to ...