Skip to content

Commit bee5bbf

Browse files
committed
Make the script installable
1 parent b565df9 commit bee5bbf

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
PREFIX ?= ${HOME}/.local
2+
BIN = $(PREFIX)/bin
3+
4+
install:
5+
@install --verbose -D --target-directory $(BIN) --mode 755 manage-ghar
6+
7+
uninstall:
8+
@rm --force $(BIN)/manage-ghar

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,24 @@ Manage GitHub Actions Runner like a SysV init script.
66

77
This manager aims to "demonize" GitHub Actions Runner in an environment where Systemd cannot be used.
88

9-
## Execution
9+
## Install
10+
11+
```sh
12+
make
13+
```
14+
15+
Default installation prefix is `$HOME/.local`, to change it:
16+
17+
```sh
18+
PREFIX=path/to/dir make
19+
```
20+
21+
## Use
1022

1123
The manager can simply be run by calling:
1224

1325
```sh
14-
./github_actions_runner_manager.sh <arguments>
26+
manage-ghar <optional arguments> <subcommand> <path of the runner>
1527
```
1628

1729
Like a SysV init script, the manager accepts the subcommands `start`, `stop`, `restart`, and `status`.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ usage () {
103103
cat <<EOF
104104
Manage GitHub Actions Runner like a SysV init script
105105
106-
github_actions_runner_manager.sh [-s STATE_PATH] [-c COMMAND] [-f] [-h] {start|stop|restart|status} RUNNER_PATH
106+
manage-ghar [-s STATE_PATH] [-c COMMAND] [-f] [-h] {start|stop|restart|status} RUNNER_PATH
107107
108108
Optional arguments:
109109
-s STATE_PATH

0 commit comments

Comments
 (0)