Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d-koppenhagen/node-init.d-script-generator
A shellscript which will create an init.d script for a nodejs application
https://github.com/d-koppenhagen/node-init.d-script-generator
Last synced: 3 days ago
JSON representation
A shellscript which will create an init.d script for a nodejs application
- Host: GitHub
- URL: https://github.com/d-koppenhagen/node-init.d-script-generator
- Owner: d-koppenhagen
- Created: 2015-07-15T14:03:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-17T07:51:51.000Z (over 9 years ago)
- Last Synced: 2024-10-11T06:11:49.372Z (about 1 month ago)
- Language: Shell
- Size: 133 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-init.d-script-generator
A shellscript which will create an init.d script for a nodejs application
* you need to install `forever`## Setup
* just run `sudo ./createInitScript`
* sudo permissions are necessary because the script will copy a file into your `/etc/init.d/` folder.
* follow the instructions## How it works?
The script will create an temp folder and copies the `initscript` file to this folder.
After that it will replace the lines with parameters the input from script.
Finally it copies the modified file to your `/etc/init.d/` directory and runs `update-rc.d`.## How to start the server?
If everything worked you can start you can:
* start the server:
`sudo service YOURSERVICE start`
* stop the server:
`sudo service YOURSERVICE stop`
* restart the server:
`sudo service YOURSERVICE restart`
* status of the server:
`sudo service YOURSERVICE status`