Skip to content

Commit

Permalink
Add scinit example
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePrez committed May 14, 2021
1 parent 850ab10 commit f817043
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,18 @@ scinit <program start command>
```
The idea is that you would simply:
1. `cd` to the directory where you'd normally start the service
2. Run the command you'd normally use to start the service, prefixed by `scinit`, for instance `scinit npm start`
2. Run the command you'd normally use to start the service, prefixed by `scinit`
3. Answer a series of questions about how you would like the service deployed
In doing so, the `scinit` will create the YAML configuration file for you and also show you information about the newly-configured service.

For instance, if you would normally launch a Node.js application from `/home/MYUSR/mydir` by running `node app.js`, you would run:
```
cd /home/MYUSR/mydir
scinit <program start command>
```
The `scinit` tool will ask you for a "short name" among other things. When done, a service configuration will be saved under that short
name. So, for instance, if your short name is "my_node_app", you can run `sc start my_node_app`.

## Ad hoc service definition
Ad hoc services can be specified on the sc command line in the format `job:jobname` or `port:portname`.
In these instances, the operations will be performed on the specified jobs. This is determined by looking for
Expand Down

0 comments on commit f817043

Please sign in to comment.