beszel: replace CRLF with LF
This commit is contained in:
parent
e84f6dddce
commit
eac4e9b099
@ -1,7 +1,7 @@
|
||||
# Configuration for /etc/init.d/beszel-agent
|
||||
|
||||
# Beszel agent require ssh key from beszel hub to run
|
||||
# without KEY Enviroment, the agent won't run
|
||||
KEY=""
|
||||
# Beszel agent runner port, default is 45876
|
||||
PORT="45876"
|
||||
# Configuration for /etc/init.d/beszel-agent
|
||||
|
||||
# Beszel agent require ssh key from beszel hub to run
|
||||
# without KEY Enviroment, the agent won't run
|
||||
KEY=""
|
||||
# Beszel agent runner port, default is 45876
|
||||
PORT="45876"
|
||||
|
@ -1,23 +1,23 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="beszel-agent"
|
||||
description="Beszel Agent Service"
|
||||
command="/usr/bin/beszel-agent"
|
||||
command_user="beszel-agent"
|
||||
command_background="yes"
|
||||
pidfile="/run/\${RC_SVCNAME}.pid"
|
||||
output_log="/var/log/beszel-agent/beszel-agent.log"
|
||||
error_log="/var/log/beszel-agent/beszel-agent.err"
|
||||
|
||||
start_pre() {
|
||||
checkpath -f -p -m 0644 -o beszel-agent:beszel-agent "\$output_log" "\$error_log"
|
||||
checkpath --directory -o beszel-agent:beszel-agent ${pidfile%/*}
|
||||
|
||||
export PORT="$PORT"
|
||||
export KEY="$KEY"
|
||||
}
|
||||
|
||||
depend() {
|
||||
need net
|
||||
after firewall
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="beszel-agent"
|
||||
description="Beszel Agent Service"
|
||||
command="/usr/bin/beszel-agent"
|
||||
command_user="beszel-agent"
|
||||
command_background="yes"
|
||||
pidfile="/run/\${RC_SVCNAME}.pid"
|
||||
output_log="/var/log/beszel-agent/beszel-agent.log"
|
||||
error_log="/var/log/beszel-agent/beszel-agent.err"
|
||||
|
||||
start_pre() {
|
||||
checkpath -f -p -m 0644 -o beszel-agent:beszel-agent "\$output_log" "\$error_log"
|
||||
checkpath --directory -o beszel-agent:beszel-agent ${pidfile%/*}
|
||||
|
||||
export PORT="$PORT"
|
||||
export KEY="$KEY"
|
||||
}
|
||||
|
||||
depend() {
|
||||
need net
|
||||
after firewall
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
addgroup -S beszel-agent 2>/dev/null
|
||||
adduser -S -D -s /bin/sh -G beszel-agent -g beszel-agent beszel-agent 2>/dev/null \
|
||||
&& passwd -u beszel-agent 2>/dev/null
|
||||
|
||||
#!/bin/sh
|
||||
|
||||
addgroup -S beszel-agent 2>/dev/null
|
||||
adduser -S -D -s /bin/sh -G beszel-agent -g beszel-agent beszel-agent 2>/dev/null \
|
||||
&& passwd -u beszel-agent 2>/dev/null
|
||||
|
||||
exit 0
|
@ -1,9 +1,9 @@
|
||||
# Configuration for /etc/init.d/beszel
|
||||
|
||||
# Host for beszel hub
|
||||
HOST=127.0.0.1
|
||||
PORT=8090
|
||||
|
||||
# Beszel dir
|
||||
BESZEL_DATADIR=/var/lib/beszel
|
||||
# Configuration for /etc/init.d/beszel
|
||||
|
||||
# Host for beszel hub
|
||||
HOST=127.0.0.1
|
||||
PORT=8090
|
||||
|
||||
# Beszel dir
|
||||
BESZEL_DATADIR=/var/lib/beszel
|
||||
BESZEL_LOG_FILE=/var/log/beszel/beszel.log
|
@ -1,23 +1,23 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
supervisor=supervise-daemon
|
||||
name=beszel
|
||||
command="/usr/bin/beszel"
|
||||
command_user="${BESZEL_USER:-beszel}"
|
||||
command_args="serve --dir '${BESZEL_DATADIR:-/var/lib/beszel}' --http '${HOST:-127.0.0.1}:${PORT:-8090}'"
|
||||
supervise_daemon_args="--chdir '${BESZEL_DATADIR:-/var/lib/beszel}' --stdout '${BESZEL_LOG_FILE:-/var/log/beszel/beszel.log}' --stderr '${BESZEL_LOG_FILE:-/var/log/beszel/beszel.log}'"
|
||||
pidfile="/run/beszel.pid"
|
||||
extra_started_commands="reopen_log"
|
||||
capabilities="^cap_net_bind_service"
|
||||
|
||||
depend() {
|
||||
use logger dns
|
||||
need net
|
||||
after firewall
|
||||
}
|
||||
|
||||
reopen_log() {
|
||||
ebegin "Reopening logfile for ${RC_SVCNAME}"
|
||||
${supervisor} ${RC_SVCNAME} --signal USR1 --pidfile "${pidfile}"
|
||||
eend $?
|
||||
#!/sbin/openrc-run
|
||||
|
||||
supervisor=supervise-daemon
|
||||
name=beszel
|
||||
command="/usr/bin/beszel"
|
||||
command_user="${BESZEL_USER:-beszel}"
|
||||
command_args="serve --dir '${BESZEL_DATADIR:-/var/lib/beszel}' --http '${HOST:-127.0.0.1}:${PORT:-8090}'"
|
||||
supervise_daemon_args="--chdir '${BESZEL_DATADIR:-/var/lib/beszel}' --stdout '${BESZEL_LOG_FILE:-/var/log/beszel/beszel.log}' --stderr '${BESZEL_LOG_FILE:-/var/log/beszel/beszel.log}'"
|
||||
pidfile="/run/beszel.pid"
|
||||
extra_started_commands="reopen_log"
|
||||
capabilities="^cap_net_bind_service"
|
||||
|
||||
depend() {
|
||||
use logger dns
|
||||
need net
|
||||
after firewall
|
||||
}
|
||||
|
||||
reopen_log() {
|
||||
ebegin "Reopening logfile for ${RC_SVCNAME}"
|
||||
${supervisor} ${RC_SVCNAME} --signal USR1 --pidfile "${pidfile}"
|
||||
eend $?
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
addgroup -S beszel 2>/dev/null
|
||||
adduser -S -D -s /bin/sh -G beszel -g beszel beszel 2>/dev/null \
|
||||
&& passwd -u beszel 2>/dev/null
|
||||
|
||||
#!/bin/sh
|
||||
|
||||
addgroup -S beszel 2>/dev/null
|
||||
adduser -S -D -s /bin/sh -G beszel -g beszel beszel 2>/dev/null \
|
||||
&& passwd -u beszel 2>/dev/null
|
||||
|
||||
exit 0
|
Loading…
x
Reference in New Issue
Block a user