A server stack is the collection of software that forms the operational infrastructure on a given machine. In a computing context, a stack is an ordered pile. A server stack is one type of solution stack — an ordered selection of software that makes it possible to complete a particular task. Like in this post about command that cannot work in background (asterisk) was one problem in server stack that need for a solution. Below are some tips in manage your linux server when you find problem about linux, bash, scripting, asterisk, background-process.
am trying to run script in background which contain command such like “asterisk -rvd >> xyz.log”, when I run it directly it work well but when run it with any background way (service, cron, &, nohub,,) it stop directly with this message:
so what is the prober way to run this command at background ?
The problem here is likely sudo. Try becoming root first (ie. “su – root” and then run the command. When I run it as root, it works without issue.