Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
annotate docs/man/man5/local-bsdtools-periodic.rst @ 770:56ab5c012d5f
fports: Begin a new command "fports" and fully implemented its subcommand "fports deptree".
fports is supposed to be the successor to check-ports.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 23 Oct 2024 13:56:52 +0200 |
| parents | 6c0c9159744d |
| children |
| rev | line source |
|---|---|
|
395
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
1 .. -*- coding: utf-8; indent-tabs-mode: nil; -*- |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
2 |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
3 |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
4 local-bsdtools-periodic |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
5 ======================= |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
6 |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
7 Synopsis |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
8 -------- |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
9 |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
10 **daily/720.local-triggered-action** |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
11 |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
12 **daily/750.local-trim-zfs** |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
13 |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
14 **daily/800.local-ipv6-refresh** |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
15 |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
16 |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
17 Description |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
18 ----------- |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
19 |
|
403
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
20 The package contains a set of periodic scripts. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
21 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
22 All scripts are disabled by default. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
23 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
24 As all :manpage:`periodic(8)` scripts given scripts can be configured |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
25 in :manpage:`periodic.conf(5)`. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
26 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
27 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
28 Daily Scripts |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
29 ~~~~~~~~~~~~~ |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
30 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
31 **720.local-triggered-action** |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
32 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
33 Take actions triggered by the existence of given files. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
34 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
35 **daily_local_triggered_action_enable** (bool) |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
36 Set it to ``YES`` to enable this script. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
37 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
38 **daily_local_triggered_action_files** (str) |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
39 The readability of any of the given files triggers the action. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
40 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
41 **daily_local_triggered_action_condition** (str) |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
42 A condition to check before executing the action. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
43 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
44 May be a Shell expression. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
45 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
46 The list of existing trigger files -- which is a subset of |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
47 `daily_local_triggered_action_files` -- is available in the Shell |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
48 variable `TRIGGER_FILES`. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
49 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
50 **daily_local_triggered_action_action** (str) |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
51 The action to execute to. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
52 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
53 May be a Shell expression. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
54 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
55 The list of existing trigger files -- which is a subset of |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
56 `daily_local_triggered_action_files` -- is available in the Shell |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
57 variable `TRIGGER_FILES`. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
58 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
59 **daily_local_triggered_action_files_remove** (bool) |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
60 By default all existing trigger files given in |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
61 `daily_local_triggered_action_files` are deleted when the action |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
62 has been executed successfully. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
63 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
64 Set to ``NO`` to disable this behaviour. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
65 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
66 **daily_local_triggered_action_profiles** (str) |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
67 If a non-empty value is given the script executes in profile-mode. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
68 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
69 If profiles are defined this script is re-executed once for for |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
70 every profile with the profile as parameter. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
71 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
72 No other global option as `daily_local_triggered_action_enable` |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
73 is used. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
74 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
75 Instead profile level configurations which are named after the |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
76 profile are used. The configuration variables have the form |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
77 `daily_local_triggered_action_${profile}_{files,condition,action,files_remove}`. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
78 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
79 For the sake of variable evaluation some special characters in a given |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
80 profile are mapped to the underscore ``_``. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
81 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
82 **750.local-trim-zfs** |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
83 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
84 If enabled it automatically trims ZFS pools at regular invervals by |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
85 calling :command:`zpool trim`. |
|
395
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
86 |
|
403
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
87 **daily_local_trim_zfs_enable** (bool) |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
88 Set to ``YES`` to enable this script. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
89 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
90 **daily_local_trim_zfs_pool** (str) |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
91 The list of ZFS pool to trim to. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
92 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
93 If empty then all known pool are trimmed. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
94 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
95 **daliy_local_trim_zfs_default_threshold** (int) |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
96 The number of days between trims. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
97 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
98 Default: 35 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
99 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
100 **800.local-ipv6-refresh** |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
101 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
102 On some networks there are issuses of loosing IPv6 connectivity |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
103 after some uptime with BSD kernels. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
104 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
105 This scripts helps to keep connectivity. It updates the IPv6 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
106 neighbour cache to ensure proper IPv6 connectivity by calling |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
107 :command:`traceroute6` at regular intervals. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
108 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
109 **daily_local_ipv6_refresh_enable** (bool) |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
110 Set to `YES` to enable this script. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
111 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
112 **daily_local_ipv6_refresh_flags** (str) |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
113 A list of flags given to :manpage:`traceroute(8)`. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
114 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
115 Default: -n -w2 -q2 -m1 -I |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
116 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
117 **daily_local_ipv6_refresh_target** (str) |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
118 The target of :manpage:`traceroute6(8)`. |
|
395
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
119 |
|
403
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
120 If empty then `ipv6_defaultrouter` as given by :manpage:`sysrc(8)` |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
121 is used -- if available. |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
122 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
123 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
124 Examples |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
125 -------- |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
126 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
127 Conditions and actions can be complex Shell expressions. They are evauluated |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
128 with `eval` in the Shell:: |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
129 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
130 daily_local_triggered_action_condition="service nginx onestatus || service apache2 onestatus" |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
131 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
132 daily_local_triggered_action_action="{ service nginx onereload && service apache2 onereload ; } || true" |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
133 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
134 Profiles:: |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
135 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
136 daily_local_triggered_action_enable=YES |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
137 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
138 daily_local_triggered_action_profiles="p1 p2-1" |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
139 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
140 # If the file exists this is executed daily because it is not removed |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
141 daily_local_triggered_action_p1_files="trigger-for-p1.txt" |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
142 daily_local_triggered_action_p1_condition="true" |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
143 daily_local_triggered_action_p1_action="cat \${TRIGGER_FILES} | mail -s ALERT root" |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
144 daily_local_triggered_action_p1_remove_files="NO" |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
145 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
146 daily_local_triggered_action_p2_1_files="trigger-for-p2.txt" |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
147 daily_local_triggered_action_p2_1_condition="true" |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
148 daily_local_triggered_action_p2_1_action="echo 'something happened' | mail -s ALERT root" |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
149 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
150 Note that the use of `TRIGGER_FILES` must be quoted in condition and |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
151 action definitions because they are executed indirectly in the context |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
152 of the Shell's `eval`. |
|
395
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
153 |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
154 |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
155 See Also |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
156 -------- |
|
64d73ad6e37d
Begin a manpage for all install periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
157 |
|
403
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
158 :manpage:`local-bsdtools(8)`, :manpage:`periodic(8)`, |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
159 :manpage:`periodic.conf(5)`, :manpage:`rc.conf(5)`, :manpage:`sysrc(8)`, |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
160 :manpage:`zpool-trim(8)`, :manpage:`traceroute(8)` |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
161 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
162 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
163 Bugs |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
164 ---- |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
165 |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
166 For a given profile "p1" there is no evaluation of something like |
|
39e6f675621d
Complete the documentation of the installed periodic scripts
Franz Glasner <fzglas.hg@dom66.de>
parents:
395
diff
changeset
|
167 "daily_local_triggered_action_p1_enable". |
