| | @@ -0,0 +1,77 @@ |
| 1 | +?cmd=r for "[fosil sync](/help/sync)?cmd=clone)" commands which are implemented as
|
| 2 | +web requests - albeit requests that the human user never sees.
|
| 3 | +Web requests can arrive at the Fossil server via direct TCP/IP (for example
|
| 4 | +when Fossil is started using commands ?cmd=ike "[fossil server
|
| 5 | +c)?cmd=clone)" commands which are(./server/any/scgi.md) or via SSH.
|
| 6 | +A backoffice process might be started regardless of t be started regardless of the origin of the/doc/trunk/www/server.wiki
|
| 7 | +
|
| 8 | +The backoffice is not a daemon. Each backoffice process runs for a short
|
| 9 | +while and then exits. This helps keep Fossil easy to manage, since there
|
| 10 | +are no daemons to start and stop. To upgrade Fossil to a new version,
|
| 11 | +you simply replace the older "fossil" executable with the newer one, and
|
| 12 | +the backoffice processes will (within a minute or so) start using the new
|
| 13 | +one. (Upgrading the executable on Windows is more complicated, since on
|
| 14 | +Windows it is not possible to replace an executable file that is in active
|
| 15 | +use. But Windows users probably already know this.)
|
| 16 | +
|
| 17 | +The backoenBSD in particular. We still do not understand why
|
| 18 | +this is. (If you have insights, please share them on the
|
| 19 | +[Fossil Forum](https://fossil-scm.org/forum) so that we can perhaps
|
| 20 | +fix the problem.) For now, the backoffice must be run manually
|
| 21 | +on OpenBSD systems.
|
| 22 | +
|
| 23 | +To set up nBSD systems.
|
| 24 | +
|
| 25 | +To set up a fully-manual backoffice, first disable the automatic backoffice
|
| 26 | +using the "[backoffice-disable](/help?cmd= The "bacint out a decoded copy of the current backoffice lease using
|
| 27 | +this command:
|
| 28 | +
|
| 29 | + fossil test-backoffice-lease -R _REPOSITORY_
|
| 30 | +
|
| 31 | +If a system has been idle for a long time, then there will be no
|
| 32 | +backoffice processes. (Either the process id entries in the lease
|
| 33 | +will be zero, or there will exist no process associated with the
|
| 34 | +process id.) When a new web request comes in, the system
|
| 35 | +sees ?cmd=for itselfthe system
|
| 36 | +sees that no backoffic/doc/trunk/www/server.wiki) or
|
| 37 | +[SCGprocess to run backoffice.
|
| 38 | +
|
| 39 | +The new backoffice proess becomes the "current">nning, if there is anrent" process. It sets a
|
| 40 | +l-Rlease expiration time for itself to be 60 seconds in the future.
|
| 41 | +Then it does the backoffice processing and exits. Note that usually
|
| 42 | +the backoffice process will exit long before its lease expires. That
|
| 43 | +is ok. The lease is there to limit the rate at which backoffice processes
|
| 44 | +run.
|
| 45 | +
|
| 46 | +If a new backoffice process starts up and sees that the "current" lease has
|
| 47 | +yet to expire, the new process"backoffice.c he backoffice processes will (within a minute or so) start using the new
|
| 48 | +on e. (Upgrading the executable on Windows is more complicated, since on
|
| 49 | +Windows it is not possible to replace an executable file that is in active
|
| 50 | +use. But Windows users probably already know this.)
|
| 51 | +
|
| 52 | +The backoenBSD in particular. We still do not understand why
|
| 53 | +this is. (If you have insights, please share them on the
|
| 54 | +[Fossil Forum](https://fossil-scm.org/forum) so that we can perhaps
|
| 55 | +fix th e problem.) For now, the backoffice must be run manually
|
| 56 | +on OpenBSD systems.
|
| 57 | +
|
| 58 | +To set up nBSD systems.
|
| 59 | +
|
| 60 | +To set up a fully-manual backoffice, first disable the automatic backoffice
|
| 61 | +using the "[backoffice-disable](/help?cmd= The "bacint out a decoded copy of the current backoffice lease using
|
| 62 | +this command:
|
| 63 | +
|
| 64 | + fossil test-backoffice-lease -R _REPOSITORY_
|
| 65 | +
|
| 66 | +If a system has been idle for a long time, then there will be no
|
| 67 | +backoffice processes. (Either the process id entries in the lease
|
| 68 | +will be zero, or there will exist no process associated with the
|
| 69 | +process id.) When a new web request comes in, the system
|
| 70 | +sees ?cmd=for itselfthe system
|
| 71 | +sees that no backoffic/doc/trunk/www/server.wiki) or
|
| 72 | +[SCGprocess to run backoffice.
|
| 73 | +
|
| 74 | +The new backoffice proess becomes the "current">nning, if there is anrent" process. It sets a
|
| 75 | +l-Rlease expiration time for itself to be
|
| 76 | +
|
| 77 | +The twoff and
|