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
[Commands](commands) can be scheduled to run by leveraging the InEngineScheduler.exe program, available as a download from a recent [release](https://github.com/InEngine-NET/InEngine.NET/releases).
4
+
5
+
## Manually Running the Scheduler
6
+
7
+
Running the scheduler from the CommandLine is useful for debugging or local development. Simply run *InEngineScheduler.exe* from the command line.
8
+
9
+
```bash
10
+
InEngineScheduler.exe
11
+
```
12
+
13
+
It can also be run on Mac/Linux with Mono.
14
+
15
+
```bash
16
+
mono InEngineScheduler.exe
17
+
```
18
+
19
+
## Running as a Windows Service
20
+
21
+
22
+
### Installing as a Windows Service
23
+
Run the Install.ps1 PowerShell script in the scheduler directory to install the scheduler in place. The script needs to be run as an administrator. The script will register the service at the location where the script is run.
24
+
25
+
```bash
26
+
ps Install.ps1
27
+
```
28
+
29
+
### Uninstalling the Windows Service
30
+
31
+
Simply run the **Uninstall.ps1** script with elevated permissions to unregister the service.
32
+
33
+
```bash
34
+
ps Uninstall.ps1
35
+
```
36
+
37
+
## Running with Supervisor (on Linux)
38
+
39
+
Supervisor is a process control system for Linux. It has extensive [documentation](http://supervisord.org/index.html), but the following should be enough to get started.
40
+
41
+
### Installing Supervisor
42
+
43
+
This command installs Supervisor on Ubuntu:
44
+
45
+
```
46
+
sudo apt-get install supervisor
47
+
```
48
+
49
+
### Configuring Supervisor
50
+
51
+
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**.
52
+
53
+
```ini
54
+
[program:inengine-scheudler]
55
+
process_name=%(program_name)s_%(process_num)02d
56
+
directory=/path/to/scheduler
57
+
command=mono InEngineScheduler.exe
58
+
autostart=true
59
+
autorestart=true
60
+
user=InEngine
61
+
numprocs=1
62
+
redirect_stderr=true
63
+
stdout_logfile=./scheduler.log
64
+
```
65
+
66
+
### Starting Supervisor
67
+
68
+
Whenever a configuration change happens to files in the Supervisor config files, Supervisor needs to be instructed to reload its configuration.
0 commit comments