Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey
Filter by
Sorted by
Tagged with
Best practices
0 votes
2 replies
48 views

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 ...
FLKR's user avatar
  • 77
0 votes
1 answer
115 views

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 ...
Robert's user avatar
  • 1
0 votes
1 answer
116 views

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 ...
Razu ahmed's user avatar
1 vote
0 answers
363 views

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 ...
Ashish Tandon's user avatar
0 votes
0 answers
50 views

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 ...
bobv1st's user avatar
0 votes
1 answer
83 views

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 ...
M.E.'s user avatar
  • 5,693
0 votes
0 answers
154 views

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 ...
Abdalrhman Osama's user avatar
0 votes
1 answer
520 views

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 ...
Matthias Neumüller's user avatar
1 vote
1 answer
404 views

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 ...
mcExchange's user avatar
  • 6,585
0 votes
0 answers
32 views

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 ...
Prathyush Peettayil's user avatar
1 vote
0 answers
72 views

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 ...
user26218552's user avatar
2 votes
0 answers
287 views

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 ...
ekraj singh toor's user avatar
0 votes
0 answers
36 views

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-...
user1233894's user avatar
  • 1,788
0 votes
1 answer
2k views

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: ...
itinance's user avatar
  • 12.5k
0 votes
1 answer
109 views

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 ...
Bo Thompson's user avatar
0 votes
0 answers
170 views

Here is the main.go you can reproduce with using go run main.go: package main import ( "encoding/json" "fmt" "io" "log" "net/http"...
NorseGaud's user avatar
  • 801
0 votes
1 answer
232 views

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 ...
CarloDiPalma's user avatar
0 votes
1 answer
253 views

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 ...
unsafe_where_true's user avatar
1 vote
1 answer
227 views

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 ...
Justin Landis's user avatar
0 votes
1 answer
97 views

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 ...
Hélder De Pégaso's user avatar
0 votes
1 answer
180 views

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:+...
And's user avatar
  • 45
0 votes
0 answers
20 views

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 ...
Geremia's user avatar
  • 5,842
0 votes
1 answer
68 views

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};...
mfld's user avatar
  • 46
1 vote
1 answer
61 views

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 ==...
tahzibi.jafar's user avatar
0 votes
1 answer
145 views

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 ...
Subhidh Agarwal's user avatar
0 votes
1 answer
178 views

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 ...
Manish's user avatar
  • 1,525
0 votes
0 answers
156 views

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 ...
Anton's user avatar
  • 1
0 votes
1 answer
101 views

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 ...
Dmitry Sergienko's user avatar
2 votes
0 answers
91 views

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/...
Adrian Cuevas Tavizon's user avatar
0 votes
0 answers
41 views

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 ...
Vladimir Kalachikhin's user avatar
0 votes
1 answer
216 views

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 ...
user2118159's user avatar
0 votes
0 answers
284 views

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 ...
B-Dawg's user avatar
  • 101
1 vote
0 answers
230 views

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 ...
taptiptop's user avatar
0 votes
0 answers
45 views

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 ...
Adegboyo's user avatar
1 vote
1 answer
364 views

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) #######################...
cat's user avatar
  • 95
0 votes
1 answer
235 views

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] ...
prushel's user avatar
1 vote
0 answers
70 views

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) ...
GARA paranormal's user avatar
0 votes
2 answers
699 views

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" } ...
kesarling's user avatar
  • 2,318
0 votes
0 answers
41 views

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] ...
Javi Albors's user avatar
0 votes
3 answers
151 views

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 ...
JPM's user avatar
  • 9,365
0 votes
1 answer
359 views

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::...
Kevin's user avatar
  • 3,418
1 vote
0 answers
50 views

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 ...
Íñigo Aldaraborda's user avatar
0 votes
0 answers
71 views

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): ...
mandy's user avatar
  • 101
1 vote
1 answer
1k views

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/...
Gemini15's user avatar
  • 125
0 votes
0 answers
61 views

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 ...
Harold's user avatar
  • 1,799
-1 votes
1 answer
559 views

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 == ...
PMDP3's user avatar
  • 57
0 votes
1 answer
60 views

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 ...
David Thielen's user avatar
0 votes
1 answer
172 views

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); ...
Davide's user avatar
  • 3
1 vote
2 answers
3k views

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, ...
Zhlobyara Halyavshick's user avatar
1 vote
0 answers
108 views

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 ...
johntheripper22's user avatar

1
2 3 4 5
53