| | @@ -0,0 +1,79 @@ |
| 1 | +?cmd=r for "[fossil 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 | +nc?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 backonot
|
| 18 | +occur more frequently than once every 60 seconds. (The 60-second spacing
|
| 19 | +is controlled by the BKOFCE_LEASE_TIME macro in the
|
| 20 | +[backoffice.c](/file/src/backoffice.c) source file.)
|
| 21 | +
|
| 22 | +If a Fossil server is idle, then no backoffice processes will be running.
|
| 23 | +That means there are no extra processes sitting around taking up memory
|
| 24 | +and process table slots for seldom accessed repositories.
|
| 25 | +The backoffic?cmd=cked
|
| 26 | +prior-disable)" setting.
|
| 27 | +
|
| 28 | + fossil setting backoffice-disable on
|
| 29 | +
|
| 30 | +Then arrange to invoke the backoffice separately using a command
|
| 31 | +like this:
|
| 32 | +
|
| 33 | + fossil backoffice --poll 30 _REPOSITORY-LIST_
|
| 34 | +
|
| 35 | +Multiple repositories can be named. This one command will handle
|
| 36 | +launching the backoffice for all of them. There are additional useful
|
| 37 | +command-line options. See the "[fossil backoffice](/help?cmd=backofficeackoffice](/help/backoffice)"
|
| 38 | +doc/doc/trunk/www/server.wiki) or
|
| 39 | +[SCGun manually using the "fossil backoffice"
|
| 40 | +command o not normally use a leas> the lease informatio lease. That means that if-Rf you run the
|
| 41 | +"fossil backoffice" command with --poll and you forget to disable
|
| 42 | +automatic backoffice by setting the "backoffice-disable" flag, then
|
| 43 | +you might have one backoffice running due to a command and another due
|
| 44 | +to a webpage access, both at the same time. This is harmless. The
|
| 45 | +only downside is that it uses extra CPU time.
|
| 46 | +
|
| 47 | +How Backoffice Is Implemented
|
| 48 | +---------------------------"backoffice.c he backoffice processes will (within a minute or so) start using the new
|
| 49 | +on e. (Upgrading the executable on Windows is more complicated, since on
|
| 50 | +Windows it is not possible to replace an executable file that is in active
|
| 51 | +use. But Windows users probably already know this.)
|
| 52 | +
|
| 53 | +The backonot
|
| 54 | +occur more frequently than once every 60 seconds. (The 60-second spacing
|
| 55 | +is controlled by the BKOFCE_LEASE_TIME macro in the
|
| 56 | +[backoffice.c](/file/src/backoffice.c) source file.)
|
| 57 | +
|
| 58 | + If a Fossil server is idle, then no backoffice processes will be running.
|
| 59 | +That means there are no extra processes sitting around taking up memory
|
| 60 | +and process table slots for seldom accessed repositories.
|
| 61 | +The backoffic?cmd=cked
|
| 62 | +prior-disable)" setting.
|
| 63 | +
|
| 64 | + fossil setting backoffice-disable on
|
| 65 | +
|
| 66 | +Then arrange to invoke the backoffice separately using a command
|
| 67 | +like this:
|
| 68 | +
|
| 69 | + fossil backoffice --poll 30 _REPOSITORY-LIST_
|
| 70 | +
|
| 71 | +Multiple repositories can be named. This one command will handle
|
| 72 | +launching the backoffice for all of them. There are additional useful
|
| 73 | +command-line options. See the "[fossil backoffice](/help?cmd=backofficeackoffice](/help/backoffice)"
|
| 74 | +doc/doc/trunk/www/server.wiki) or
|
| 75 | +[SCGun manually using the "fossil backoffice"
|
| 76 | +command o not normally use a leas> the lease informatio lease. That means that if-Rf you run the
|
| 77 | +"fossil backoffice" comma
|
| 78 | +
|
| 79 | +The twoff and
|