forked from bruceg/daemontools-encore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
envdir.8
74 lines (71 loc) · 1.27 KB
/
envdir.8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.TH envdir 8
.SH NAME
envdir \- runs another program with environment modified according to files
in a specified directory.
.SH SYNOPSIS
.B envdir
.I d
.I child
.SH DESCRIPTION
.I d
is a single argument.
.I child
consists of one or more arguments.
.B envdir
sets various environment variables as specified by files in the directory
named
.IR d .
It then runs
.IR child .
If
.I d
contains a file named
.I s
whose first line is
.IR t ,
.B envdir
removes an environment variable named
.I s
if one exists, and then adds an environment variable named
.I s
with value
.IR t .
The name
.I s
must not contain =. Spaces and tabs at the end of
.I t
are removed. Nulls in
.I t
are changed to newlines in the environment variable.
If the file
.I s
is completely empty (0 bytes long),
.B envdir
removes an environment variable named
.I s
if one exists, without adding a new variable.
.SH EXIT CODES
.B envdir
exits 111 if it has trouble reading
.IR d ,
if it runs out of memory for environment variables, or if it cannot run
.IR child .
Otherwise its exit code is the same as that of
.IR child .
.SH SEE ALSO
supervise(8),
svc(8),
svok(8),
svstat(8),
svscanboot(8),
svscan(8),
readproctitle(8),
fghack(8),
pgrphack(8),
multilog(8),
tai64n(8),
tai64nlocal(8),
setuidgid(8),
envuidgid(8),
softlimit(8),
setlock(8)