< Home - < Back

daemonize


Information about the package, daemonize, which is shipped with common Linux distributions. The daemonize package is designed for, Run a command as a Unix daemon.


Package Name:

daemonize

Summary:

Run a command as a Unix daemon

Description:

daemonize runs a command as a Unix daemon. As defined in W. Richard Stevens' 1990 book, Unix Network Programming (Addison-Wesley, 1990), a daemon is "a process that executes 'in the background' (i.e., without an associated terminal or login shell) either waiting for some event to occur, or waiting to perform some specified task on a periodic basis." Upon startup, a typical daemon program will: - Close all open file descriptors (especially standard input, standard output and standard error) - Change its working directory to the root filesystem, to ensure that it doesn’t tie up another filesystem and prevent it from being unmounted - Reset its umask value - Run in the background (i.e., fork) - Disassociate from its process group (usually a shell), to insulate itself from signals (such as HUP) sent to the process group - Ignore all terminal I/O signals - Disassociate from the control terminal (and take steps not to reacquire one) - Handle any SIGCLD signals Most programs that are designed to be run as daemons do that work for themselves. However, you’ll occasionally run across one that does not. When you must run a daemon program that does not properly make itself into a true Unix daemon, you can use daemonize to force it to run as a true daemon.

Architecture:

x86_64

Version:

1.7.3

Release:

1.el6

Size:

19 k

Repository:

epel

From Repository:

Licence:

BSD



Handy Yum Commands for daemonize


Control the daemonize package with the following handy commands outlined below.


Command

Description of Command

yum install daemonize

This command will install daemonize on the server.

yum remove daemonize

This command will un-install daemonize on the server. When you run this command, you will be asked if you are sure that you want to remove daemonize, so you have to manually confirm that you want to do this.

yum -y remove daemonize

This command will un-install daemonize on the server. When you run this command with th e -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove daemonize when using the -y flag.

yum update daemonize

This command will update daemonize to the latest version. When you run this command, you will be asked if you are sure that you want to remove daemonize, so you have to manually confirm that you want to do this.

yum -y update daemonize

This command will update daemonize to the latest version. When you run this command with the -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove daemonize when using the -y flag.

yum info daemonize

This command will show you core information about the daemonize package.

yum deplist daemonize

This command will show you the dependencies for daemonize. Thankfully, when using Yum, if dependencies are required, these are also installed at the same time so you don't have to worry too much about that.

yum check-update daemonize

This command will check if there is an update waiting on daemonize. When you run this command this will return nothing if there is nothing to update, or, will return the package name if the package is due to be updated.