Repository
Current version released
2 years ago
Versions
- 1.0.3Latest
- 1.0.2
- 1.0.1
- 1.0.0
- 1.0.0-rc.45
- 1.0.0-rc.44
- 1.0.0-rc.43
- 1.0.0-rc.42
- 1.0.0-rc.41
- 1.0.0-rc.40
- 1.0.0-rc.39
- 1.0.0-rc.38
- 1.0.0-rc.37
- 1.0.0-rc.36
- 1.0.0-rc.35
- 1.0.0-rc.34
- 1.0.0-rc.33
- 1.0.0-rc.32
- 1.0.0-rc.31
- 1.0.0-rc.30
- 1.0.0-rc.29
- 1.0.0-rc.28
- 1.0.0-rc.27
- 1.0.0-rc.26
- 1.0.0-rc.25
- 1.0.0-rc.24
- 1.0.0-rc.23
- 1.0.0-rc.22
- 1.0.0-rc.21
- 1.0.0-rc.20
- 1.0.0-rc.19
- 1.0.0-rc.18
- 1.0.0-rc.17
- 1.0.0-rc.16
- 1.0.0-rc.15
- 1.0.0-rc.14
- 1.0.0-rc.13
- 1.0.0-rc.12
- 1.0.0-rc.11
- 1.0.0-rc.10
- 1.0.0-rc.9
- 1.0.0-rc.8
- 1.0.0-rc.7
- 1.0.0-rc.6
- 1.0.0-rc.5
- 1.0.0-rc.4
- 1.0.0-rc.3
- 1.0.0-rc.2
- 1.0.0-rc.1
- 1.0.0-rc.0
- 1.0.0-beta.37
- 1.0.0-beta.36
- 1.0.0-beta.35
- 1.0.0-beta.34
- 1.0.0-beta.33
- 1.0.0-beta.32
- 1.0.0-beta.31
- 1.0.0-beta.30
- 1.0.0-beta.29
- 1.0.0-beta.28
- 1.0.0-beta.27
- 1.0.0-beta.26
- 1.0.0-beta.25
- 1.0.0-beta.24
- 1.0.0-beta.23
- 1.0.0-beta.22
- 1.0.0-beta.21
- 1.0.0-beta.20
- 1.0.0-beta.19
- 1.0.0-beta.18
- 1.0.0-beta.17
- 1.0.0-beta.16
- 1.0.0-beta.15
- 1.0.0-beta.14
- 1.0.0-beta.13
- 1.0.0-beta.12
- 1.0.0-beta.11
- 1.0.0-beta.10
- 1.0.0-beta.9
- 1.0.0-beta.8
- 1.0.0-beta.7
- 1.0.0-beta.6
- 1.0.0-beta.5
- 1.0.0-beta.4
- 1.0.0-beta.3
- 1.0.0-beta.2
- 1.0.0-beta.1
- 1.0.0-beta.0
- 1.0.0-alpha-35
- 1.0.0-alpha-34
- 1.0.0-alpha-33
- 1.0.0-alpha-32
- 1.0.0-alpha-31
- 1.0.0-alpha-30
- 1.0.0-alpha-29
- 1.0.0-alpha-28
- 1.0.0-alpha-27
- 1.0.0-alpha-26
- 1.0.0-alpha-25
- 1.0.0-alpha-23
- 1.0.0-alpha-22
- 1.0.0-alpha-21
- 1.0.0-alpha-20
- 1.0.0-alpha-19
- 1.0.0-alpha-18
- 1.0.0-alpha-17
- 1.0.0-alpha-16
- 1.0.0-alpha-15
- 1.0.0-alpha-14
- 1.0.0-alpha-13
- 1.0.0-alpha-12
- 1.0.0-alpha-11
- 1.0.0-alpha-10
- 1.0.0-alpha-9
- 1.0.0-alpha-8
- 1.0.0-alpha-7
- 1.0.0-alpha-6
- 1.0.0-alpha-5
- 1.0.0-alpha-4
- 1.0.0-alpha-3
- 1.0.0-alpha-2
- 1.0.0-alpha-1
- 1.0.0-alpha.0
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1-dev.0
pup
Process manager for Deno
Work in progress!
Features
- Keep your processes alive
- Define one or multiple processes in a configuration file
pup.json
- Start instantly, or according to a cron-pattern
- Restart according to a cron pattern
- Restart autmatically if a process exits
- Single stdout logging multiple processes
Example
A basic example setup is available in /examples/basic
Running the example
Change working dir to the example directory containg a couple of scripts and pup.json
cd /examples/basic
Start pup
deno run -A ../../pup-cli.ts
test.js will start instantly, and will restart automatically 10 seconds after exiting.
test2.js will start every fifth second according to cron pattern */5 * * * * *
Output
PS \pup\examples\basic> deno run -A ../../pup-cli.ts
Creating cron task */5 * * * * *
Starting Kept-alive task subprocess by autostart
Kept alive task - Hello!
Subprocess Kept-alive task exited with code 0
Subprocess Kept-alive task will restart in 10000 ms
Creating Periodic example task subprocess by cron
Cron task - Hello!
Cron task - My working dir is \pup\examples\basic
Subprocess Periodic example task finished with code 0
Creating Periodic example task subprocess by cron
Cron task - Hello!
Cron task - My working dir is \pup\examples\basic
Starting Kept-alive task subprocess by autostart
Subprocess Periodic example task finished with code 0
Kept alive task - Hello!
Subprocess Kept-alive task exited with code 0
Subprocess Kept-alive task will restart in 10000 ms
Example configuration
[
{
"name": "Periodic example task",
"cmd": ["deno","run","--allow-read","./task2.js"],
"startPattern": "*/5 * * * * *"
},
{
"name": "Kept-alive task",
"cmd": ["deno","run","--allow-read","./task1.js"],
"autostart": true,
"restart": "always",
"restartDelayMs": 10000
}
]