The daemon Reference Manual

Table of Contents

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 2.3 "Robert April" on Wed Mar 14 03:47:17 2018 GMT+0.


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

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

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

2 Systems

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


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

2.1 daemon

Author

Masatoshi SANO

License

MIT

Description

Process daemonization for some common lisp.

Version

0.0.4

Dependency

sb-posix

Source

daemon.asd (file)

Components

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

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 files   [Contents][Index]

3.1.1 daemon.asd

Location

daemon.asd

Systems

daemon (system)


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

3.1.2 daemon/package.lisp

Parent

daemon (system)

Location

package.lisp

Packages

daemon


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

3.1.3 daemon/daemon.lisp

Dependency

package.lisp (file)

Parent

daemon (system)

Location

daemon.lisp

Exported Definitions
Internal Definitions

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

4 Packages

Packages are listed by definition order.


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

4.1 daemon

Source

package.lisp (file)

Use List

common-lisp

Exported Definitions
Internal Definitions

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

5 Definitions

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


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

5.1 Exported definitions


Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 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 (file)

Function: exit ()
Package

daemon

Source

daemon.lisp (file)

Function: fork ()
Package

daemon

Source

daemon.lisp (file)


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

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Constants

Constant: +default-mask+
Package

daemon

Source

daemon.lisp (file)

Constant: +default-mode+
Package

daemon

Source

daemon.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Special variables

Special Variable: *o-append*
Package

daemon

Source

daemon.lisp (file)

Special Variable: *o-rdonly*
Package

daemon

Source

daemon.lisp (file)

Special Variable: *o-wronly*
Package

daemon

Source

daemon.lisp (file)

Special Variable: *wnohang*
Package

daemon

Source

daemon.lisp (file)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.3 Functions

Function: chdir DIR
Package

daemon

Source

daemon.lisp (file)

Function: detouch-terminal &key INPUT OUTPUT ERROR SET-STREAM
Package

daemon

Source

daemon.lisp (file)

Function: dup2 OLD NEW
Package

daemon

Source

daemon.lisp (file)

Function: getgrgid GID
Package

daemon

Source

daemon.lisp (file)

Function: getgrnam NAME
Package

daemon

Source

daemon.lisp (file)

Function: getpid ()
Package

daemon

Source

daemon.lisp (file)

Function: getppid ()
Package

daemon

Source

daemon.lisp (file)

Function: getpwnam NAME
Package

daemon

Source

daemon.lisp (file)

Function: getpwuid ID
Package

daemon

Source

daemon.lisp (file)

Function: getuid ()
Package

daemon

Source

daemon.lisp (file)

Function: group-gid GRP
Package

daemon

Source

daemon.lisp (file)

Function: passwd-dir PSWD
Package

daemon

Source

daemon.lisp (file)

Function: passwd-uid PSWD
Package

daemon

Source

daemon.lisp (file)

Function: passwd-username PSWD
Package

daemon

Source

daemon.lisp (file)

Function: pclose FD
Package

daemon

Source

daemon.lisp (file)

Function: pipe ()
Package

daemon

Source

daemon.lisp (file)

Function: popen FSPEC FLAGS
Package

daemon

Source

daemon.lisp (file)

Function: setgid GID
Package

daemon

Source

daemon.lisp (file)

Function: setsid ()
Package

daemon

Source

daemon.lisp (file)

Function: setuid UID
Package

daemon

Source

daemon.lisp (file)

Function: umask MASK
Package

daemon

Source

daemon.lisp (file)

Function: waitpid PID OPTION
Package

daemon

Source

daemon.lisp (file)


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

Appendix A Indexes


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

A.1 Concepts

Jump to:   D   F   L  
Index Entry  Section

D
daemon.asd: The daemon<dot>asd file
daemon/daemon.lisp: The daemon/daemon<dot>lisp file
daemon/package.lisp: The daemon/package<dot>lisp file

F
File, Lisp, daemon.asd: The daemon<dot>asd file
File, Lisp, daemon/daemon.lisp: The daemon/daemon<dot>lisp file
File, Lisp, daemon/package.lisp: The daemon/package<dot>lisp file

L
Lisp File, daemon.asd: The daemon<dot>asd file
Lisp File, daemon/daemon.lisp: The daemon/daemon<dot>lisp file
Lisp File, daemon/package.lisp: The daemon/package<dot>lisp file

Jump to:   D   F   L  

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: Internal functions

D
daemonize: Exported functions
detouch-terminal: Internal functions
dup2: Internal functions

E
exit: Exported functions

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

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

P
passwd-dir: Internal functions
passwd-uid: Internal functions
passwd-username: Internal functions
pclose: Internal functions
pipe: Internal functions
popen: Internal functions

S
setgid: Internal functions
setsid: Internal functions
setuid: Internal functions

U
umask: Internal functions

W
waitpid: Internal functions

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

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

A.3 Variables

Jump to:   *   +  
C   S  
Index Entry  Section

*
*o-append*: Internal special variables
*o-rdonly*: Internal special variables
*o-wronly*: Internal special variables
*wnohang*: Internal special variables

+
+default-mask+: Internal constants
+default-mode+: Internal constants

C
Constant, +default-mask+: Internal constants
Constant, +default-mode+: Internal constants

S
Special Variable, *o-append*: Internal special variables
Special Variable, *o-rdonly*: Internal special variables
Special Variable, *o-wronly*: Internal special variables
Special Variable, *wnohang*: Internal special variables

Jump to:   *   +  
C   S  

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

A.4 Data types

Jump to:   D   P   S  
Index Entry  Section

D
daemon: The daemon system
daemon: The daemon package

P
Package, daemon: The daemon package

S
System, daemon: The daemon system

Jump to:   D   P   S