| ︙ | | |
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
-
+
|
However, the daily digest of email notifications is handled by the
backoffice. If a Fossil server can sometimes go more than a day without
being accessed, then the automatic backoffice will never run, and the
daily digest might not go out until somebody does visit a webpage.
If this is a problem, an administrator can set up a cron job to
periodically run:
> fossil backoffice _REPOSITORY_
fossil backoffice _REPOSITORY_
That command will cause backoffice processing to occur immediately.
Note that this is almost never necessary for an internet-facing
Fossil repository, since most repositories will get multiple accesses
per day from random robots, which will be sufficient to kick off the
daily digest emails. And even for a private server, if there is very
little traffic, then the daily digests are probably a no-op anyhow
|
| ︙ | | |
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
-
+
-
+
|
[Fossil Forum](https://fossil-scm.org/forum) so that we can perhaps
fix the problem.) For now, the backoffice must be run manually
on OpenBSD systems.
To set up fully-manual backoffice, first disable the automatic backoffice
using the "[backoffice-disable](/help?cmd=backoffice-disable)" setting.
> fossil setting backoffice-disable on
fossil setting backoffice-disable on
Then arrange to invoke the backoffice separately using a command
like this:
> fossil backoffice --poll 30 _REPOSITORY-LIST_
fossil backoffice --poll 30 _REPOSITORY-LIST_
Multiple repositories can be named. This one command will handle
launching the backoffice for all of them. There are additional useful
command-line options. See the "[fossil backoffice](/help?cmd=backoffice)"
documentation for details.
The backoffice processes run manually using the "fossil backoffice"
|
| ︙ | | |
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
-
+
|
"no process". Sometimes the process id will be non-zero even if there
is no corresponding process. Fossil knows how to figure out whether or
not a process still exists.
You can print out a decoded copy of the current backoffice lease using
this command:
> fossil test-backoffice-lease -R _REPOSITORY_
fossil test-backoffice-lease -R _REPOSITORY_
If a system has been idle for a long time, then there will be no
backoffice processes. (Either the process id entries in the lease
will be zero, or there will exist no process associated with the
process id.) When a new web request comes in, the system
sees that no backoffice process is active and so it kicks off a separate
process to run backoffice.
|
| ︙ | | |
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
|
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
|
-
+
|
The backoffice should "just work". It should not require administrator
attention. However, if you suspect that something is not working right,
there are some debugging aids.
We have already mentioned the command that shows the backoffice lease
for a repository:
> fossil test-backoffice-lease -R _REPOSITORY_
fossil test-backoffice-lease -R _REPOSITORY_
Running that command every few seconds should show what is going on with
backoffice processing in a particular repository.
There are also settings that control backoffice behavior. The
"backoffice-nodelay" setting prevents the "next" process from taking a
lease and sleeping. If "backoffice-nodelay" is set, that causes all
|
| ︙ | | |