How to Install and Uninstall daemonize Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: May 17,2024

1. Install "daemonize" package

This guide let you learn how to install daemonize on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install daemonize

2. Uninstall "daemonize" package

This guide covers the steps necessary to uninstall daemonize on Ubuntu 20.10 (Groovy Gorilla):

$ sudo apt remove daemonize $ sudo apt autoclean && sudo apt autoremove

3. Information about the daemonize package on Ubuntu 20.10 (Groovy Gorilla)

Package: daemonize
Architecture: amd64
Version: 1.7.8-1
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Alvin Chen
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 43
Depends: libc6 (>= 2.4)
Filename: pool/universe/d/daemonize/daemonize_1.7.8-1_amd64.deb
Size: 11888
MD5sum: d2800c2193f7d86b9cd0e25b92e3c6be
SHA1: 024fc82158120d921361e9d27fccfc1a0a878892
SHA256: 041a7dadc19aeb35dfc3ed1673536818711086aff13916c0abec4108ab82e3f8
SHA512: 898b7a4a975f1cef0205df17f40f67556d06c64709fb4f173c9a3c210f567f6db75d04baea5ae4f10623d6f75179128a5e659483997207a684c271c39fcbc2f9
Homepage: http://software.clapper.org/daemonize/
Description-en: tool to run a command as a 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.
Description-md5: 2b262e892ec3da37335d254c46b27199