On POSIX systems a background-process is created in a shell by either adding an ampersand symbol after a command (e.g. ./script.sh &) or by pressing CTRL+Z while the command is being executed. The command will then run independently from the shell but will still write stdout and stderr output to the shell from where it has been started. It can only be stopped with the kill command.
Questions tagged [background-process]
91 questions
2
votes
1 answer
How often does a Linux check it's /etc/localtime file
I am trying to troubleshoot a problem. Some very helpful information would lead me to a solution is:
Often does Linux check the /etc/localtime file?
Additionally if there is a configuration file to increase the frequency (for testing) that would be…

DarkSheep
- 1,036
- 1
- 13
- 23
2
votes
1 answer
Rogue process tracking
I have a debian stable server and I am trying to find a process which wake-up every hour at exactly xh22 (1h22, 2h22, 3h22, etc...) and write something to the disk.
However I cannot find the process, nor what it is writing (I know something is…

SaintGermain
- 21
- 4
2
votes
1 answer
Send input to background process
I have a process that i run with this command:
java -jar loginserver.jar &
I need to be able to send commands to this program. I've tried bg/fg but apparently it doesn't persist thru sessions. Is there any other way I can do this?

Tar
- 265
- 4
- 11
2
votes
2 answers
Linux: Background process linked to terminal window
I am running linux and I am running a script/program in the background using
cmd &
This works fine on Solaris, but on my Linux box (2.6.9-55/ Red Hat), the background process stops when the originating terminal window is closed/loses…

weismat
- 343
- 3
- 16
2
votes
3 answers
Am I using too much memory? (Rails on EC2 with Resque)
I am looking at the memory usage of the Rails application (it uses background processes via Resque) and since the common answer to the question, "how many workers is too many" was "test and see", I ran some memory commands and wonder if someone can…

Stpn
- 145
- 4
2
votes
3 answers
Process running in background got killed in linux
I am having a remote server to which i connect using ssh. I started a process(mongodb) on the server using following command-
"/usr/bin/mongod --dbpath /mnt/ebs-300/mongodb --logpath /mnt/ebs-300/log/mongodb/mongodb.log run --config…

azhar_salati
- 131
- 1
- 5
2
votes
3 answers
How does antivirus work on a Remote Desktop Services server?
We're rolling out a new Remote Desktop Services server and have decided that it's probably time to install antivirus software on it; while we wait for our vendor/supplier to tell us about the licensing options, can anyone explain how various AV…

Andrew
- 8,002
- 3
- 36
- 44
1
vote
1 answer
Windows Service: specifying a custom stop command
We have a custom application that messes with a LOT of 3rd party resources. When terminating, we need to gracefully "give up the lease" so to speak.
The app itself is written in .NET Core (and targets true multiplatform run-ability). We use…

Paul S.
- 13
- 2
1
vote
1 answer
how to run 10 process and montring it
i have about 10-15 FFmpeg Process
for streaming server like this:
ffmpeg -i "http://ip/play/a03i" -vcodec copy -acodec copy -f flv "rtmp://ip:80/APP/Name"
am use the Nginx-rtmp module to run it using the exec_static Directive
but i can't…

Mohammed
- 11
- 2
1
vote
0 answers
PHP daemon shows status of "stopped" - can't run php script in the background
I'm trying to launch a PHP script in the background (Linux/Centos 6.8) by appending the & symbol to the command. However, 'jobs' lists the script with status [1]+ Stopped.
Issuing a 'bg 1' to run the script in the background still results in a "[1]+…

Ryan Griggs
- 963
- 2
- 14
- 29
1
vote
1 answer
Kill process and child processes, not parent processes, not group
I need to kill a process and all of its subprocesses programatically.
Killing the group is not an option because I do not want to kill the parent processes.
Example:
pid process
1 nice parent process that should live
2 …

firelynx
- 119
- 1
- 4
1
vote
2 answers
Fork a process inside a bash shell script
I've a simple shell script like
#!/bin/bash
sh -c "sleep 60" &
exec sleep 120
In using the pstree command, I found something like
`-sleep(11681)---sleep(11682)
The first sleep is due to the sh -c, so even I have execute that sleep in the…

Ryan
- 5,831
- 24
- 72
- 91
1
vote
1 answer
Reliably running background operations
I'm looking for a recommendation on how to reliably run background operations. I have many servers posting operation messages to AWS SQS, and I have another server which will run these CPU intensive operations when idle.
I need some sort of polling…

Errol Fitzgerald
- 475
- 1
- 8
- 17
1
vote
1 answer
Is there an issue with working directory when using service to launch an init script?
I am curious, is there something I need to watch out for when spawning process as background jobs from init scripts using service?
Here is the line that works at terminal, in a bash script/an init script, but will not successfully launch when using…

brandeded
- 1,845
- 8
- 32
- 50
1
vote
1 answer
What's the difference between cron and services like Supervisord?
Recently I came across supervisor while researching beanstalk stuff. Can someone explain to me why I might use a process management service like that instead of plain old cron jobs?

joshholat
- 193
- 1
- 6
- 12