This pull request introduces support for running the act_runner daemon as a service on Windows, Linux, and macOS. It also includes the option to set a custom working directory using the --working-directory flag.
Changes Made
Added the capability to install and enable the daemon as a service with act_runner daemon install.
Implemented functionality to stop and uninstall the service using act_runner daemon uninstall.
Default working directory is set to the directory containing the act_runner executable.
The installation process checks for the presence of .runner and config.yaml files in the same directory and loads them into the service configuration.
Additional Information
Before running act_runner daemon install, it is crucial to register act_runner using the act_runner register command to generate the required .runner file.
$ ./act_runner daemon -h
Run as a runner daemon
Usage:
act_runner daemon [flags]
act_runner daemon [command]
Available Commands:
install Install the daemon
uninstall Uninstall the daemon
Flags:
-h, --help help for daemon
Global Flags:
-c, --config string Config file path
-u, --user string Specify user-name to run the daemon service as (default "ec_user")
-d, --working-directory string Specify custom root directory where all data are stored (default "/home/ec_user/Desktop/t/act_runner")
Use "act_runner daemon [command] --help" for more information about a command.
## Summary
This pull request introduces support for running the `act_runner` daemon as a service on Windows, Linux, and macOS. It also includes the option to set a custom working directory using the `--working-directory` flag.
## Changes Made
- Added the capability to install and enable the daemon as a service with `act_runner daemon install`.
- Implemented functionality to stop and uninstall the service using `act_runner daemon uninstall`.
- Default working directory is set to the directory containing the `act_runner` executable.
- The installation process checks for the presence of `.runner` and `config.yaml` files in the same directory and loads them into the service configuration.
## Additional Information
Before running `act_runner daemon install`, it is crucial to register `act_runner` using the `act_runner register` command to generate the required `.runner` file.
```
$ ./act_runner daemon -h
Run as a runner daemon
Usage:
act_runner daemon [flags]
act_runner daemon [command]
Available Commands:
install Install the daemon
uninstall Uninstall the daemon
Flags:
-h, --help help for daemon
Global Flags:
-c, --config string Config file path
-u, --user string Specify user-name to run the daemon service as (default "ec_user")
-d, --working-directory string Specify custom root directory where all data are stored (default "/home/ec_user/Desktop/t/act_runner")
Use "act_runner daemon [command] --help" for more information about a command.
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
This pull request introduces support for running the
act_runnerdaemon as a service on Windows, Linux, and macOS. It also includes the option to set a custom working directory using the--working-directoryflag.Changes Made
act_runner daemon install.act_runner daemon uninstall.act_runnerexecutable..runnerandconfig.yamlfiles in the same directory and loads them into the service configuration.Additional Information
Before running
act_runner daemon install, it is crucial to registeract_runnerusing theact_runner registercommand to generate the required.runnerfile.Has there been any progress?
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.