https://github.com/worksofliam/ileastic_manage
https://github.com/worksofliam/ileastic_manage
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/worksofliam/ileastic_manage
- Owner: worksofliam
- Created: 2025-01-16T04:33:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-16T04:37:01.000Z (over 1 year ago)
- Last Synced: 2025-03-05T23:27:21.361Z (over 1 year ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## ileastic_manage
Simple SQL tools to manage services/programs created for [ILEastic](https://github.com/sitemule/ILEastic). Provides procedures to start and stop services, and a view to see which ILEastic services are running.
```sql
-- Start the HELLOWORLD service
call ileastic.start('ILEASTIC', 'HELLOWORLD');
-- Start the HELLOWORLD service. Stop it first if it's already running
call ileastic.start('ILEASTIC', 'HELLOWORLD', restartService=>'y');
-- See the services that are running
select * from ileastic.services;
-- Stop the HELLOWORLD service
call ileastic.stop('HELLOWORLD');
```
### Future cool ideas
- [ ] Stop all services
- [ ] Start all services in a specific library (by looking at imports in the program object, which can be done with SQL)
- [ ] In the same manner as start, but show a list of objects/services that can be started in a certain library - perhaps even show if they're already running.
### How to build
This assumes you already have [ILEastic](https://github.com/sitemule/ILEastic) installed already.
I did not create a build script for this yet. Simplist way to build these SQL objects is with VS Code (or ACS even) with Code for IBM i (+ the database extension).
1. Clone this repo & open it in VS Code
2. Connect to the system with Code for IBM i
3. Execute the `create` statements in this order:
1. `ensureLibrary`
2. `services`
3. `stop`
4. `start`