mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-20 01:37:50 -05:00
chore(deploy): add OpenRC support and deployment helpers
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.
This commit is contained in:
1 parent
9f69b3511b
commit
d20920dc3c
6 files changed
+105
-3
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#!/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
|
||||
}
|
||||
Reference in new issue
Block a user