You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-src/scheduling.md
+1-76Lines changed: 1 addition & 76 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -235,7 +235,7 @@ namespace MyCommandPlugin
235
235
236
236
## Running the Scheduler
237
237
238
-
### Manually from the CLI
238
+
There are a [variety of ways](server) to run the scheduler. The simplest way is from the command line.
239
239
240
240
Running the scheduler from the CommandLine is useful for debugging or local development:
241
241
@@ -248,78 +248,3 @@ It can also be run on Mac and Linux with Mono via a shell wrapper script:
248
248
```bash
249
249
./inengine -s
250
250
```
251
-
252
-
### On Windows as a Service
253
-
254
-
Run the **Install.ps1** PowerShell script in the scheduler directory to install the scheduler in place.
255
-
The script needs to be run as an administrator.
256
-
The script will register the service at the location where the script is run.
257
-
258
-
```bash
259
-
ps Install.ps1
260
-
```
261
-
262
-
Simply run the **Uninstall.ps1** script with elevated permissions to remove the service.
263
-
264
-
```bash
265
-
ps Uninstall.ps1
266
-
```
267
-
268
-
### On Linux with Supervisor
269
-
270
-
Supervisor is a process control system for Linux.
271
-
It has extensive [documentation](http://supervisord.org/index.html), but the following should be enough to get started.
272
-
273
-
#### Installing Supervisor
274
-
275
-
This command installs Supervisor on Ubuntu:
276
-
277
-
```bash
278
-
sudo apt-get install supervisor
279
-
```
280
-
281
-
#### Configuring Supervisor
282
-
283
-
Supervisor configuration files are stored in the **/etc/supervisor/conf.d** directory. Multiple files can be created in this directory to specify different programs, or multiple instances of the same program, for Supervisor to monitor. Copy this sample config into a file called **/etc/supervisor/conf.d/inengine-scheduler.conf**.
284
-
285
-
```ini
286
-
[program:inengine]
287
-
process_name=%(program_name)s_%(process_num)02d
288
-
directory=/path/to/inengine
289
-
command=mono inengine.exe -s
290
-
autostart=true
291
-
autorestart=true
292
-
user=InEngine
293
-
numprocs=1
294
-
redirect_stderr=true
295
-
stdout_logfile=./scheduler.log
296
-
```
297
-
298
-
#### Starting Supervisor
299
-
300
-
Whenever a configuration change happens to files in the Supervisor config files, Supervisor needs to be instructed to reload its configuration.
301
-
302
-
```bash
303
-
sudo supervisorctl reread
304
-
sudo supervisorctl update
305
-
```
306
-
307
-
Now, simply start the scheduler workers with the **supervisorctl** program:
308
-
309
-
```bash
310
-
sudo supervisorctl start inengine:*
311
-
```
312
-
313
-
### In a Container with Docker
314
-
315
-
Install [Docker](https://www.docker.com/what-docker) first, then pull the **ethanhann/inengine** image:
When run as a service, InEngine runs scheduled commands in the background and actively listens for commands to be queued.
4
+
5
+
## Running the Server
6
+
7
+
### In the Foreground
8
+
9
+
Running the server from the CommandLine is useful for debugging or local development:
10
+
11
+
```bash
12
+
inengine.exe -s
13
+
```
14
+
15
+
It can also be run on Mac and Linux with Mono via a shell wrapper script:
16
+
17
+
```bash
18
+
./inengine -s
19
+
```
20
+
21
+
### On Windows as a Service
22
+
23
+
Run the **Install.ps1** PowerShell script in the InEngine directory to install the InEngine as a service.
24
+
The script needs to be run as an administrator.
25
+
The script will register the service at the location where the script is run - i.e. put the files where you want them installed before running the installation script.
26
+
27
+
```bash
28
+
ps Install.ps1
29
+
```
30
+
31
+
Simply run the **Uninstall.ps1** script with elevated permissions to remove the service.
32
+
33
+
```bash
34
+
ps Uninstall.ps1
35
+
```
36
+
37
+
### On Linux with Supervisor
38
+
39
+
Supervisor is a process control system for Linux.
40
+
It has extensive [documentation](http://supervisord.org/index.html), but the following should be enough to get started.
41
+
42
+
#### Installing Supervisor
43
+
44
+
This command installs Supervisor on Ubuntu:
45
+
46
+
```bash
47
+
sudo apt-get install supervisor
48
+
```
49
+
50
+
#### Configuring Supervisor
51
+
52
+
Supervisor configuration files are stored in the **/etc/supervisor/conf.d** directory. Multiple files can be created in this directory to specify different programs, or multiple instances of the same program, for Supervisor to monitor. Copy this sample config into a file called **/etc/supervisor/conf.d/inengine-scheduler.conf**.
53
+
54
+
```ini
55
+
[program:inengine]
56
+
process_name=%(program_name)s_%(process_num)02d
57
+
directory=/path/to/inengine
58
+
command=mono inengine.exe -s
59
+
autostart=true
60
+
autorestart=true
61
+
user=InEngine
62
+
numprocs=1
63
+
redirect_stderr=true
64
+
stdout_logfile=./scheduler.log
65
+
```
66
+
67
+
#### Starting Supervisor
68
+
69
+
Whenever a configuration change happens to files in the Supervisor config files, Supervisor needs to be instructed to reload its configuration.
70
+
71
+
```bash
72
+
sudo supervisorctl reread
73
+
sudo supervisorctl update
74
+
```
75
+
76
+
Now, simply start the server workers with the **supervisorctl** program:
77
+
78
+
```bash
79
+
sudo supervisorctl start inengine:*
80
+
```
81
+
82
+
### In a Container with Docker
83
+
84
+
Install [Docker](https://www.docker.com/what-docker) first, then pull the **ethanhann/inengine** image:
0 commit comments