add more info
This commit is contained in:
parent
c9cea1fec2
commit
f6ed9b04de
1 changed files with 21 additions and 1 deletions
22
README.md
22
README.md
|
|
@ -1,3 +1,23 @@
|
|||
# servicectl
|
||||
|
||||
little service manager thing i made
|
||||
little service manager thing i made
|
||||
|
||||
# How to set it up
|
||||
|
||||
1. Make a folder to hold all your services. ~/services works well for this.
|
||||
2. Change every instance of `/home/user/services/` to `/path/to/your/service/folder/` in the script.
|
||||
3. Add a user for each of your services, and set each user's home folder to `/path/to/your/services/folder/<service name>/`.
|
||||
4. Privilege each user with the required privileges for each service. For example, a service to automatically update the system probably needs elevated privileges to use the package manager.
|
||||
5. su to each service and make a `~/start.sh` and `~/stop.sh` file. In the `start.sh` file, put a shell script to start the service, and in the `stop.sh` file, put a shell script to stop the service. Make sure both scripts are executable.
|
||||
|
||||
# How to use it
|
||||
|
||||
Start a service:
|
||||
|
||||
`# ./servicectl start <service name>`
|
||||
|
||||
Stop a service:
|
||||
|
||||
`# ./servicectl stop <service name>`
|
||||
|
||||
Run servicectl with no arguments to get a list of commands.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue