~jamesodhunt/ubuntu/saucy/upstart/1.9.1

« back to all changes in this revision

Viewing changes to init/man/init.5

  • Committer: James Hunt
  • Date: 2013-06-28 15:57:37 UTC
  • mfrom: (1436.2.1)
  • Revision ID: james.hunt@ubuntu.com-20130628155737-8bskclzrhmjvpm6e
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
916
916
.P
917
917
 
918
918
.\"
 
919
.SS AppArmor support
 
920
Upstart provides several stanzas for loading and switching to different
 
921
AppArmor profiles. If AppArmor isn't enabled in the currently running
 
922
kernel, the stanzas will be silently ignored.
 
923
 
 
924
.TP
 
925
.B apparmor load \fIPROFILE
 
926
This stanza specifies an AppArmor profile to load into the Linux kernel at
 
927
job start. The AppArmor profile will confine a main process automatically
 
928
using path attachment, or manually by using the \fBapparmor switch\fP
 
929
stanza.
 
930
.I PROFILE
 
931
must be an absolute path to a profile and a failure will occur if the file
 
932
doesn't exist.
 
933
 
 
934
.nf
 
935
apparmor load /etc/apparmor.d/usr.sbin.cupsd
 
936
.fi
 
937
.\"
 
938
.TP
 
939
.B apparmor switch \fINAME
 
940
This stanza specifies the name of an AppArmor profile name to switch to
 
941
before running the main process.
 
942
.I NAME
 
943
must be the name of a profile already loaded into the running Linux kernel,
 
944
and will result in a failure if not available.
 
945
 
 
946
.nf
 
947
apparmor switch /usr/sbin/cupsd
 
948
.fi
 
949
.\"
919
950
.SS Miscellaneous
920
951
.TP
921
952
.B kill signal \fISIGNAL
994
1025
lead to jobs with complex \fBstart on\fP or \fPstop on\fP conditions
995
1026
not behaving as expected \fIwhen restarted\fP. For example, if a job
996
1027
encodes the following condition:
997
 
.ti +4
998
1028
.sp 1
 
1029
.RS
999
1030
.nf
1000
1031
start on A and (B or C)
1001
1032
.fi
 
1033
.RE
1002
1034
.P
1003
1035
When \(aqA\(aq and \(aqB\(aq become true, the condition is satisfied so
1004
1036
the job will be run. However, if the job ends and subsequently \(aqA\(aq
1074
1106
.BR pty (7)
1075
1107
.BR sh (1)
1076
1108
.BR upstart-events (7)
 
1109
.BR apparmor (7)