The daemon Reference Manual

Next: , Previous: , Up: (dir)   [Contents][Index]

The daemon Reference Manual

This is the daemon Reference Manual, version 0.0.4, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 04:22:39 2022 GMT+0.

Table of Contents


1 Introduction

daemon

This is a library which has simple functionality to make lisp process daemonize on unix like platform.

Usage

Currently only daemon:daemonize and daemon:exit function are exported. so just a simple example is good enough to show the idea of this library.

(daemon:daemonize :exit-parent t)

(with-open-file (out #P "/tmp/daemonlog" :direction :output :if-exists :supersede)
  (format out "~A ~A~%~A~%"
          (lisp-implementation-type)
          (lisp-implementation-version)
          (daemon::getpid)))

(sleep 90)
(daemon:exit)

then you can see the effect by the command below.

ps axo user,pid,ppid,command

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 daemon

Process daemonization for some common lisp.

Author

Masatoshi SANO

License

MIT

Version

0.0.4

Dependency

sb-posix (system).

Source

daemon.asd.

Child Components

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp   [Contents][Index]

3.1.1 daemon/daemon.asd

Source

daemon.asd.

Parent Component

daemon (system).

ASDF Systems

daemon.


3.1.2 daemon/package.lisp

Source

daemon.asd.

Parent Component

daemon (system).

Packages

daemon.


Previous: , Up: Lisp   [Contents][Index]

3.1.3 daemon/daemon.lisp

Dependency

package.lisp (file).

Source

daemon.asd.

Parent Component

daemon (system).

Public Interface
Internals

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 daemon

Source

package.lisp.

Use List

common-lisp.

Public Interface
Internals

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Public Interface


5.1.1 Ordinary functions

Function: daemonize (&key input output error umask pidfile exit-parent exit-hook disable-debugger user group set-stream sigabrt sighup sigint sigterm)
Package

daemon.

Source

daemon.lisp.

Function: exit ()
Package

daemon.

Source

daemon.lisp.

Function: fork ()
Package

daemon.

Source

daemon.lisp.


5.2 Internals


Next: , Previous: , Up: Internals   [Contents][Index]

5.2.1 Constants

Constant: +default-mask+
Package

daemon.

Source

daemon.lisp.

Constant: +default-mode+
Package

daemon.

Source

daemon.lisp.


Next: , Previous: , Up: Internals   [Contents][Index]

5.2.2 Special variables

Special Variable: *o-append*
Package

daemon.

Source

daemon.lisp.

Special Variable: *o-rdonly*
Package

daemon.

Source

daemon.lisp.

Special Variable: *o-wronly*
Package

daemon.

Source

daemon.lisp.

Special Variable: *wnohang*
Package

daemon.

Source

daemon.lisp.


Previous: , Up: Internals   [Contents][Index]

5.2.3 Ordinary functions

Function: chdir (dir)
Package

daemon.

Source

daemon.lisp.

Function: detouch-terminal (&key input output error set-stream)
Package

daemon.

Source

daemon.lisp.

Function: dup2 (old new)
Package

daemon.

Source

daemon.lisp.

Function: getgrgid (gid)
Package

daemon.

Source

daemon.lisp.

Function: getgrnam (name)
Package

daemon.

Source

daemon.lisp.

Function: getpid ()
Package

daemon.

Source

daemon.lisp.

Function: getppid ()
Package

daemon.

Source

daemon.lisp.

Function: getpwnam (name)
Package

daemon.

Source

daemon.lisp.

Function: getpwuid (id)
Package

daemon.

Source

daemon.lisp.

Function: getuid ()
Package

daemon.

Source

daemon.lisp.

Function: group-gid (grp)
Package

daemon.

Source

daemon.lisp.

Function: passwd-dir (pswd)
Package

daemon.

Source

daemon.lisp.

Function: passwd-uid (pswd)
Package

daemon.

Source

daemon.lisp.

Function: passwd-username (pswd)
Package

daemon.

Source

daemon.lisp.

Function: pclose (fd)
Package

daemon.

Source

daemon.lisp.

Function: pipe ()
Package

daemon.

Source

daemon.lisp.

Function: popen (fspec flags)
Package

daemon.

Source

daemon.lisp.

Function: setgid (gid)
Package

daemon.

Source

daemon.lisp.

Function: setsid ()
Package

daemon.

Source

daemon.lisp.

Function: setuid (uid)
Package

daemon.

Source

daemon.lisp.

Function: umask (mask)
Package

daemon.

Source

daemon.lisp.

Function: waitpid (pid option)
Package

daemon.

Source

daemon.lisp.


Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts


Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   C   D   E   F   G   P   S   U   W  
Index Entry  Section

C
chdir: Private ordinary functions

D
daemonize: Public ordinary functions
detouch-terminal: Private ordinary functions
dup2: Private ordinary functions

E
exit: Public ordinary functions

F
fork: Public ordinary functions
Function, chdir: Private ordinary functions
Function, daemonize: Public ordinary functions
Function, detouch-terminal: Private ordinary functions
Function, dup2: Private ordinary functions
Function, exit: Public ordinary functions
Function, fork: Public ordinary functions
Function, getgrgid: Private ordinary functions
Function, getgrnam: Private ordinary functions
Function, getpid: Private ordinary functions
Function, getppid: Private ordinary functions
Function, getpwnam: Private ordinary functions
Function, getpwuid: Private ordinary functions
Function, getuid: Private ordinary functions
Function, group-gid: Private ordinary functions
Function, passwd-dir: Private ordinary functions
Function, passwd-uid: Private ordinary functions
Function, passwd-username: Private ordinary functions
Function, pclose: Private ordinary functions
Function, pipe: Private ordinary functions
Function, popen: Private ordinary functions
Function, setgid: Private ordinary functions
Function, setsid: Private ordinary functions
Function, setuid: Private ordinary functions
Function, umask: Private ordinary functions
Function, waitpid: Private ordinary functions

G
getgrgid: Private ordinary functions
getgrnam: Private ordinary functions
getpid: Private ordinary functions
getppid: Private ordinary functions
getpwnam: Private ordinary functions
getpwuid: Private ordinary functions
getuid: Private ordinary functions
group-gid: Private ordinary functions

P
passwd-dir: Private ordinary functions
passwd-uid: Private ordinary functions
passwd-username: Private ordinary functions
pclose: Private ordinary functions
pipe: Private ordinary functions
popen: Private ordinary functions

S
setgid: Private ordinary functions
setsid: Private ordinary functions
setuid: Private ordinary functions

U
umask: Private ordinary functions

W
waitpid: Private ordinary functions

Jump to:   C   D   E   F   G   P   S   U   W