Questions tagged [daemon]

0

votes
0

answer
3

Views

Rails production as daemon -d not working with Nginx

When I start rails server -b 127.0.0.1 -p 3000 -e production all is working When start with daemon option rails server -b 127.0.0.1 -p 3000 -e production -d It writes than something wrong (red window on rails website) log/production.log is empty Nginx error.log (domain changed to site.ru) - not only...
user1938361
2

votes
2

answer
90

Views

Windows: Python Daemon Won't Run on IIS but Runs Locally

I have a Django web application hosted on IIS. I subprocess should be consistently running alongside the web application. When I run the application locally using python manage.py runserver the background task runs perfectly while the application is running. However, hosted on IIS the background ta...
CodeRocks
1

votes
1

answer
372

Views

How to differentiate docker system logs from docker container logs?

Everything I saw about the docker daemon logs is that they can be found under journalctl -u docker in case of systemd presence. Recently my docker (v.1.13.1) containers hung up. sudo journalctl -u docker only gives me container logs that generated by my applications. I see no docker daemon output th...
4xy
1

votes
0

answer
82

Views

Transmission script-torrent-done not running?

settings.json 'script-torrent-done-enabled': true, 'script-torrent-done-filename': '/var/lib/transmission/.config/transmission-daemon/torrent_complete.sh' the owner of the torrent_complete.sh - is transmission, the chmod is 777, but the script is still not executing, what I am doing wrongg?
Blurry Script
1

votes
1

answer
502

Views

Confusion with Users in Rundeck

I am a quite new with Rundeck and I am confusing with Users in Rundeck configuration, in Rundeck server and in Rundeck node. I have read all official documentation and I understand Users definition in Rundeck's daemon. However, I don't know if a new user (called for example rundeck) is needed in Run...
Miguel.G
1

votes
0

answer
246

Views

Transmission script-torrent-done not executing?

settings.json 'script-torrent-done-enabled': true, 'script-torrent-done-filename': '/var/lib/transmission/.config/transmission-daemon/torrent_complete.sh' the owner of the torrent_complete.sh - is transmission, the chmod is 777, but the script is still not executing, what I am doing wronggg?
Blurry Script
1

votes
0

answer
26

Views

Forked init.d process becomes unresponsive

I have a script to start and fork a netcat process. After a while, the netcat process stops logging output. Remote computers are supposed to connect to the socket and send a message every few hours, but it seems like the netcat process dies/halts after a while, because there's usually only one messa...
Connor
1

votes
3

answer
267

Views

git daemon over ssh - fatal: protocol error: bad line length character: SSH-

I'm created user 'gitproxy' on the server side, added my ssh key to its authorized keys and trying to work with git daemon over ssh: gitproxy:~$ git daemon --port=2222 --verbose but have the error: On client side: o:~/git$ git clone ssh://server>:2222/home/gitproxy/git Cloning into 'git'... ssh: con...
Alexander
1

votes
2

answer
405

Views

How to check if a daemon service is running via Cron job or script?

How can I set up a cron job to monitor multiple PIs (via SSH) that are running the same daemon script (service)? I was thinking of using a cron job to monitor the service status and write to a file on my server if the status of the service is active or inactive, and then I can later use the contents...
Kai
1

votes
1

answer
275

Views

Celery daemonization: celery.service: Failed at step USER spawning /home/mike/movingcollage/movingcollageenv/bin/celery: No such process

When I do journalctl -f after systemctl start celery.service I get Mar 21 19:14:21 ubuntu-2gb-nyc3-01 systemd[1]: Reloading. Mar 21 19:14:21 ubuntu-2gb-nyc3-01 systemd[1]: Started ACPI event daemon. Mar 21 19:14:25 ubuntu-2gb-nyc3-01 systemd[21431]: celery.service: Failed at step USER spawning /hom...
Mike Johnson
1

votes
0

answer
210

Views

Python 3 using concurrent futures ProcessPool in Daemon context

I am trying to use the concurrent.futures ProcessPool executor withon the python Daemon() context (ThreadPool is working) and every submitted task is getting stuck in state running. import concurrent.futures import time import daemon import sys class Daemon(): def __init__(self): print('init') self....
keo
1

votes
1

answer
131

Views

What can be done about gradle daemon not working with ClearCase?

When I run my 'gradle build' command in ClearCase in one view, wait for the command to finish, then switch to another view, and then run the same command in the second view, nothing works correctly, because the daemon doesn't work well with views. To get it to work correctly, I have to run 'gradle -...
JMoney
1

votes
1

answer
377

Views

Cannot start docker daemon, failed to connect do containerd

I get an error when trying to start docker daemon, I get the following error Failed to connect to containerd: failed to dial '/var/run/docker/containerd/docker-containerd.sock': dial unix:///var/run/docker/containerd/docker-containerd.sock: timeout I have no idea of what might be causing this error....
1

votes
0

answer
43

Views

How to change added torrent file location for transmission-daemon

The transmission-daemon stores by default some temporary files and the added torrent files in the following directory: /var/lib/transmission-daemon/.config/transmission-daemon/ Is it possible to set another directory?
Mattia72
1

votes
1

answer
56

Views

android- can't start Daemon

My android studio stopped working and is putting this error The newly created daemon process has a different context than expected. Java home is different. Expecting: 'C:\Program Files\Android\Android Studio\jre' but was: 'C:\Program Files\Java\jre-9.0.4'. Please configure the JDK to match the expec...
Anis Kaloun
1

votes
1

answer
241

Views

Dotnet app started as daemon doesn't working properly

I developed a simple application using NetCore, the app write the content on a file every time is executed, this is the code: using System; using System.IO; namespace SimpleApp { class Program { static void Main(string[] args) { using (StreamWriter writer = new StreamWriter('log.txt', true)) { write...
Charanoglu
1

votes
1

answer
174

Views

Hazelcast need to be connected as client in the existing cluster instead of member

The changes which I made in server side: @Bean(name = {'hazelcast'}) public HazelcastInstance hazelcastInstance() { ClientConfig clientConfig = new ClientConfig(); clientConfig.getGroupConfig().setName(integrationSettings.getHazelcastClusterGroupName()) .setPassword(integrationSettings.getHazelcastC...
1

votes
0

answer
138

Views

docker CircleCI integration fails to start daemon

I am executing a CircleCI script that should setup and install docker so that I can deploy to Dockerhub, however the Docker daemon will not start properly after installing it. These are the circleCI automations that I want to setup --- - run: name: Install Docker client command: | set -x VER='17.03....
joe the coder
1

votes
0

answer
80

Views

Is it possible to write a Linux daemon using Swift?

Swift is available on Linux, and I am planing to give it a try. I was wondering though if it would be possible to write a daemon using that language. According to this tutorial, the steps involved are: Fork off the parent process Change file mode mask (umask) Open any logs for writing Create a un...
1

votes
1

answer
673

Views

Stuck at starting gradle daemon

I am an Android Developer. Yesterday I opened my current project at Android Studio and the project could not start. An error was shown: Gradle sync failed: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm opt...
Frensky Frensky
1

votes
0

answer
345

Views

In a Spring-Boot application without web server, what is the correct way to keep it running?

I have written a small spring-boot application without embedded servers. It is intended to run from command line and stay running until the VM gets signalled. What is the intended way of in the spring-boot framework (v2.0) to keep the application alive as a service? Should I have a Thread.currentThr...
Kai
1

votes
1

answer
91

Views

How to run program as daemon?

I have configured fluentd using fluentd-ui on debian machine. How do I start it in background without the GUI?
Mahesh Uligade
1

votes
1

answer
118

Views

python-daemon and logging: set logging level interactively

I have a python-daemon process that logs to a file via a ThreadedTCPServer (inspired by the cookbook example: https://docs.python.org/2/howto/logging-cookbook.html#sending-and-receiving-logging-events-across-a-network, as I will have many such processes writing to the same file). I am controlling th...
bazza1988
1

votes
0

answer
107

Views

systemd servicefailed to connect to session d-bus

I have a application which has to connect to session dbus during bootup. If I start my application manually or start with initd, it is starting and connecting to session dbus. But if I start through systemd by giving command as systemctl --user start my-service which is in the path '/etc/systemd/use...
deepan muthusamy
1

votes
1

answer
132

Views

.Net core application issues in running on linux as daemon

I am trying to deploy a .Net core application, which is basically identity server. I built it and deployed it on AWS server. I started the server: [email protected]:/$ /usr/bin/dotnet /var/iss/iss.dll --urls 'http://localhost:5009;https://localhost:5010' /certs/IdentityServer4Auth.pfx Hostin...
Murtuza Kabul
1

votes
1

answer
67

Views

Perl simple webserver not handling multiple requests simultaneously

I wrote a simple webserver which should continuously handle simultaneous requests. But, even after detaching the threads it doesn't handle simultaneous requests. Can someone help? Webserver.pl use HTTP::Daemon; use threads; my $webServer; my $package_map = {'test' => 'test'}; my $d = HTTP::Daemon-...
Soumya dutta
1

votes
1

answer
117

Views

Django how to run external module as Daemon

Is there a correct way to start an infinite task from Django Framework? I need to run a MQTT Client (based on Paho) and a Python PID implementation. I want to use Django as 'Orhestrator' because I want to start daemons only if django it's running. I use django becasue of it's simplicity for creating...
Andrea
1

votes
0

answer
70

Views

PHP: Created File from exec() is always empty

I would like to execute a command in PHP with exec. If i pass the second param $out and start the script from the command line, it waits until the exec is finished. But if I launch it from the Browser, the Browser immediately shows the result. The command executes some unit tests and store the outpu...
kev2718
1

votes
0

answer
60

Views

How should Postgres be installed to run as a daemon under user name _postgres on Mac OSX?

I followed directions for installing Postgres on Mac OS X using Brew. All worked well. I placed a .plist in my Library/LaunchAgents and had Postgres running when I logged in. However, when I logged out postgres shuts down (which is correct behavior for processes started by launchd which are in a...
kd4ttc
1

votes
0

answer
113

Views

Unable to find a usable idle daemon

I am trying to use Talon SRX with WPILib for First Robotics for Java in Visual Studio Code. I follow the instructions here: https://phoenix-documentation.readthedocs.io/en/latest/ch05a_CppJava.html. But when I get to the step where I try the build test - https://phoenix-documentation.readthedocs.io/...
cranberry
1

votes
0

answer
79

Views

Ubuntu 18.04 Git starts its own ssh-agent instead of using the existing agent

I'm having an issue I don't fully understand with my new machine where the first time I run a git command after a restart, it starts its own ssh-agent instead of using the existing one that already has my key added. Symptoms are as follows: When I first restart my machine and open a new terminal, I...
SamWill
1

votes
0

answer
15

Views

LaunchControl for Mac giving me errors

I've been trying to schedule a Python script running with LaunchControl for Mac. My script contains f strings, new in Python 3.6. For some reason, my I keep getting a syntax error on the f strings, and nothing will run.
Toby
1

votes
1

answer
125

Views

Laravel horizon supervisor does not restart after horizon::terminate with forge daemon running

Horizon runs fine but only recently, after a deploy, supervisor and queue workers do not start back up again with Horizon GUI showing 'Inactive' To get them running again I can: restart the daemon worker from within forge restart the supervisor /etc/init.d/supervisor restart My deploy script has php...
Adam Lambert
1

votes
1

answer
70

Views

List all daemon/service names in linux using Python?

I want to have list of all daemons/services in Linux using python. I am able to get information using service --status-all However I don't want to execute terminal commands through Python. Is there any API available to perform this operation? My project includes lots of stuff so I need to be careful...
gadhvi
1

votes
0

answer
57

Views

Grant camera permission to macOS Mojave LaunchDaemon

I wrote a macOS Mojave LaunchDaemon which triggers a shell script to run the imagesnap program. The purpose is to capture a still image from the camera every second. The Problem: the daemon fails with the error below. I can't figure out what is causing it to fail but it seems like maybe the camer...
Danger Ginger
1

votes
0

answer
24

Views

Auto start Gradle Daemon in build container

I have a Jenkins Server running which uses the Docker and Cloud plugins to allow for spawning of a new container from a specified image as required. Inside this container I build a Java project which uses the Gradle Daemon. Basically it starts the daemon when the build starts. Is there a way to forc...
Duncan
1

votes
0

answer
32

Views

How to Check why JVM is not able to terminate

I have a program which has reached the end of the spring boot run method but it still won't terminate. Here's a list of threads running when seen in Eclipse Debug: Here's what I can see after pausing the Threads: Here's the Thread dump My program reads from a message stream which is shutdown properl...
KCK
1

votes
1

answer
32

Views

How to set daemon to kill other processes in its process group when it dies

I want to create a Manager daemon that spawns two subprocesses A and B. When the Manager daemon dies/is killed, it should kill A and B. Currently, I have it set so if I pass in 'stop' to Manager, it'll send a SIGTERM to its Process Group, which kills everything. However, I would like it so if I send...
Wesley Wang
1

votes
0

answer
43

Views

Daemon is performed only once

I want to write a daemon which will write the contents of the folder every 5 seconds. Unfortunately, this is done only once. What to do to be done cyclically? I dont have any idea how to do. struct dirent *file; struct stat file_details; while (1) { while((file=readdir(source))!=NULL) { if(file-...
kamilm758
1

votes
0

answer
25

Views

How to resolve docker startup issue in toolbox

I am new to docker. I have installed docker toolbox in my machine, as I have windows 7. It properly installed docker toolbox with oracle virtual box also. When I start docker toolbox I get the log as follows: Running pre-create checks... (default) No default Boot2Docker ISO found locally, downloadin...
Dinesh

View additional questions