add more info

This commit is contained in:
user333 2026-06-08 22:10:14 +00:00
commit f6ed9b04de

View file

@ -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.