diff options
author | Shepherd on Tux02 | 2024-06-20 03:33:59 -0500 |
---|---|---|
committer | Shepherd on Tux02 | 2024-06-20 03:33:59 -0500 |
commit | 7983318936c65f2af0c079414a0be9d7f7af0fcc (patch) | |
tree | 2bfd18cc688a0d92fdffbebfdd2fca21dd3c4712 | |
parent | e87a67ef97e446b3d4f810615a1d5b73e899cfe9 (diff) | |
download | gn-shepherd-services-7983318936c65f2af0c079414a0be9d7f7af0fcc.tar.gz |
Move README to README.md
-rw-r--r-- | README | 23 | ||||
-rw-r--r-- | README.md | 26 |
2 files changed, 25 insertions, 24 deletions
@@ -1,23 +0,0 @@ -This repo contains the files used to run shepherd services. - -The `shepherd` and `cron` directories go in `.config` - -The shell scripts sit in the home directory. - -The systemd service is to start shepherd automatically on system boot. - -Working with Shepherd Services - -Each service is stored in a separate file. This allows us to reload individual services without needing to restart all of the services in one go. In order to see which services are available run the command `herd status`. 'Started' services are currently running, 'Stopped' services are not running but are still loaded, and 'One-shot' are services which are not running but run a one-off script or service. - -The services are setup so that they have code that is run when it is started and continues to run until it is stopped. Sometimes that code can call other shell scripts in the home directory. If the primary code in the service needs to be changed then the service needs to be reloaded in accordance to a process that will allow it to be reloaded without stopping all the other services. In our example the service is `foo` and it is located in a file `bar.scm`. - -$ herd stop foo -$ herd load root .config/shepherd/init.d/bar.scm - -The second command will load the code in `bar.scm` into `shepherd`, and if the service is configured to start automatically at startup it will start immediately. This process should not affect the other running services. - -To use shepherd's herd command, assuming you have permissions granted in /etc/sudoers, the command is 'sudo -u shepherd /home/shepherd/.guix-profile/bin/herd status'. Adding a bash alias, such as "alias herd-herd='sudo -u shepherd /home/shepherd/.guix-profile/bin/herd'", will make it easier to interact with shepherd without needing to switch to the shepherd user. The logs for the various shepherd services are located in /home/shepherd/logs/ but are not yet timestamped. The log for shepherd itself is in /home/shepherd/.config/shepherd/shepherd.log. There is not yet a way to change this from a config file. - -*Per service Guix profiles* -Each service gets its own guix profile. This us to upgrade each service individually. If a specialized channel is needed then the command would be `guix pull --channels=/path/to/channels/file --profile=/path/to/profile` @@ -1 +1,25 @@ -Repository has moved to tux02 +Note: repository has moved to tux02 + +This repo contains the files used to run shepherd services. + +The `shepherd` and `cron` directories go in `.config` + +The shell scripts sit in the home directory. + +The systemd service is to start shepherd automatically on system boot. + +Working with Shepherd Services + +Each service is stored in a separate file. This allows us to reload individual services without needing to restart all of the services in one go. In order to see which services are available run the command `herd status`. 'Started' services are currently running, 'Stopped' services are not running but are still loaded, and 'One-shot' are services which are not running but run a one-off script or service. + +The services are setup so that they have code that is run when it is started and continues to run until it is stopped. Sometimes that code can call other shell scripts in the home directory. If the primary code in the service needs to be changed then the service needs to be reloaded in accordance to a process that will allow it to be reloaded without stopping all the other services. In our example the service is `foo` and it is located in a file `bar.scm`. + +$ herd stop foo +$ herd load root .config/shepherd/init.d/bar.scm + +The second command will load the code in `bar.scm` into `shepherd`, and if the service is configured to start automatically at startup it will start immediately. This process should not affect the other running services. + +To use shepherd's herd command, assuming you have permissions granted in /etc/sudoers, the command is 'sudo -u shepherd /home/shepherd/.guix-profile/bin/herd status'. Adding a bash alias, such as "alias herd-herd='sudo -u shepherd /home/shepherd/.guix-profile/bin/herd'", will make it easier to interact with shepherd without needing to switch to the shepherd user. The logs for the various shepherd services are located in /home/shepherd/logs/ but are not yet timestamped. The log for shepherd itself is in /home/shepherd/.config/shepherd/shepherd.log. There is not yet a way to change this from a config file. + +*Per service Guix profiles* +Each service gets its own guix profile. This us to upgrade each service individually. If a specialized channel is needed then the command would be `guix pull --channels=/path/to/channels/file --profile=/path/to/profile` |