mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
Add OpenRC service and configuration files to support automated server updates on systems without systemd timers. - Add `deploy/update-loop.sh` to handle periodic updates for OpenRC. - Add `deploy/burrow-update.openrc` and `deploy/burrow-update.conf`. - Update `deploy/update.sh` to support both systemd and OpenRC service restarts. - Add `deploy/README.md` with installation instructions. - Update `.gitignore` to allow the deployment documentation.
18 lines
447 B
Plaintext
18 lines
447 B
Plaintext
#!/sbin/openrc-run
|
|
# Install as /etc/init.d/burrow-update (see deploy/README.md).
|
|
|
|
description="Update the Burrow server from GitHub"
|
|
supervisor=supervise-daemon
|
|
command=/bin/bash
|
|
command_args="${BURROW_DIR:-/home/aj/ajc-private-server}/deploy/update-loop.sh"
|
|
pidfile="/run/${RC_SVCNAME}.pid"
|
|
stopgroup=yes
|
|
|
|
# update.sh uses this to choose rc-service when it restarts Burrow.
|
|
: "${BURROW_INIT:=openrc}"
|
|
export BURROW_INIT
|
|
|
|
depend() {
|
|
need net
|
|
}
|