~vorlon/ubuntu/raring/upstart/lp.1199778

« back to all changes in this revision

Viewing changes to init/man/session-end.7

  • Committer: James Hunt
  • Date: 2013-02-08 16:15:23 UTC
  • mto: (1182.56.40 upstart)
  • mto: This revision was merged to the branch mainline in revision 1427.
  • Revision ID: james.hunt@ubuntu.com-20130208161523-bw3pknc5ef8o4su0
* dbus/com.ubuntu.Upstart.xml: Added 'EndSession' method.
* init/Makefile.am: Updated for quiesce.[ch].
* init/conf.c: conf_destroy(): Cleanup function.
* init/conf.h: Prototype.
* init/control.c: control_end_session(): 'EndSession' implemenation.
* init/control.h: Include.
* init/events.h: Added SESSION_END_EVENT.
* init/job_class.c: job_class_max_kill_timeout(): New function.
* init/job_class.h: Prototype.
* init/job_process.c:
  - Added disable_respawn to disallow respawns.
  - job_process_jobs_running(): New function.
  - job_process_stop_all(): New function.
  - job_process_terminated(): Honours disable_respawn.
* init/job_process.h: Prototypes.
* init/main.c:
  - Typos.
  - term_handler(): Quiesce rather than re-exec on receipt of SIGTERM
    when running as a Session Init.
  - main(): Make quiesce() handle cleanup.
* init/man/init.8: Update for Session Init SIGTERM handling.
* init/man/startup.7: Update for Session Init.
* init/session.c: session_destroy(): New function.
* init/session.h: Prototype.
* init/man/session-end.7: New man page.
* init/quiesce.[ch]: New files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH session\-end 7 2013-02-08 "Upstart"
 
2
.\"
 
3
.SH NAME
 
4
session\-end \- event signalling session shutdown
 
5
.\"
 
6
.SH SYNOPSIS
 
7
.B session\-end
 
8
.BI TYPE\fR= TYPE
 
9
.\"
 
10
.SH DESCRIPTION
 
11
The
 
12
.B session\-end
 
13
event is generated by the Upstart
 
14
.BR init (8)
 
15
daemon when running as a Session Init (where its pid is not 1) when
 
16
requested to stop.
 
17
 
 
18
The
 
19
.B TYPE
 
20
environment variable will be set to either
 
21
.I shutdown
 
22
when the Session Init has received the
 
23
.I SIGTERM
 
24
signal, or
 
25
.I logout
 
26
when the Session Init has processed the
 
27
.B com.ubuntu.Upstart0_6.EndSession()
 
28
D\-Bus method call.
 
29
 
 
30
.\"
 
31
.SH SEE ALSO
 
32
.BR startup (7)
 
33
.BR init (5)
 
34
.BR init (8)