Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56920537
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/Cargo.toml b/Cargo.toml
index e3a869e..836eff6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,29 +1,29 @@
[package]
name = "alkane"
-version = "0.3.1"
+version = "0.3.2"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
axum = "0.8.4"
env_logger = "^0.11.11"
lazy_static = "^1.5.0"
limiting-factor-axum = "0.1.0"
log = "^0.4.33"
serde_yaml = "^0.9.33"
[dependencies.clap]
version = "~4.6.1"
features = ["derive"]
[dependencies.serde]
version = "^1.0.228"
features = ["derive"]
[dependencies.tokio]
version = "1.47.1"
features = [
"macros",
"rt-multi-thread",
]
diff --git a/support/freebsd/rc.d/alkane b/support/freebsd/rc.d/alkane
index 922e834..e2608be 100644
--- a/support/freebsd/rc.d/alkane
+++ b/support/freebsd/rc.d/alkane
@@ -1,101 +1,101 @@
#!/bin/sh
# PROVIDE: alkane
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# alkane_enable (bool): Set it to YES to enable alkane.
# Default is "NO".
# alkane_user (user): Set user to run alkane.
# Default is "deploy".
# alkane_dir_db (path): The database directory to use. Must match config.
# Default is "/var/db/alkane".
# alkane log_enable (bool): Enable logging to a specific log file
# Default is "YES"
# alkane_log_path (path): The path to the software log
# Default is "/var/log/alkane.log".
-# alkane_log_level (str): The level of verbosity of the log (debug/info will output Rocket/Hyper too)
+# alkane_log_level (str): The level of verbosity of the log (debug/info will output Axum too)
# Default is "warn"
# alkane_syslog_output_enable (bool): Set to enable syslog output.
# Default is "NO". See daemon(8).
# alkane_syslog_output_priority (str): Set syslog priority if syslog enabled.
# Default is "warn". See daemon(8).
# alkane_syslog_output_facility (str): Set syslog facility if syslog enabled.
# Default is "daemon". See daemon(8).
. /etc/rc.subr
name=alkane
rcvar=alkane_enable
load_rc_config $name
: ${alkane_enable:="NO"}
: ${alkane_user:="deploy"}
: ${alkane_dir_db:="/var/db/alkane"}
: ${alkane_log_enable:="YES"}
: ${alkane_log_path:="/var/log/alkane.log"}
: ${alkane_log_level:="warn"}
: ${alkane_config:="/usr/local/etc/alkane.conf"}
: ${alkane_address:="localhost"}
: ${alkane_port:="10206"}
DAEMON=$(/usr/sbin/daemon 2>&1 | grep -q syslog ; echo $?)
if [ ${DAEMON} -eq 0 ]; then
: ${alkane_syslog_output_enable:="NO"}
: ${alkane_syslog_output_priority:="warn"}
: ${alkane_syslog_output_facility:="daemon"}
if checkyesno alkane_syslog_output_enable; then
alkane_syslog_output_flags="-T ${name}"
if [ -n "${alkane_syslog_output_priority}" ]; then
alkane_syslog_output_flags="${alkane_syslog_output_flags} -s ${alkane_syslog_output_priority}"
fi
if [ -n "${alkane_syslog_output_facility}" ]; then
alkane_syslog_output_flags="${alkane_syslog_output_flags} -l ${alkane_syslog_output_facility}"
fi
fi
else
alkane_syslog_output_enable="NO"
alkane_syslog_output_flags=""
fi
if checkyesno alkane_log_enable; then
alkane_log_enable="YES"
alkane_log_flags="-o ${alkane_log_path}"
alkane_env="${alkane_env} RUST_LOG=warn,alkane=${alkane_log_level} ${alkane_env}"
else
alkane_log_enable="NO"
fi
alkane_env="${alkane_env} APP_PORT=${alkane_port} APP_ADDRESS=${alkane_address} ${alkane_env}"
pidfile=/var/run/alkane.pid
procname="/usr/local/bin/alkane"
command="/usr/sbin/daemon"
-command_args="-f -t ${name} ${alkane_log_flags} ${alkane_syslog_output_flags} -p ${pidfile} ${procname} server"
+command_args="-f -t ${name} ${alkane_log_flags} ${alkane_syslog_output_flags} -p ${pidfile} /usr/bin/env ${alkane_env} ${procname} server"
start_precmd=alkane_startprecmd
required_files="$alkane_config"
alkane_startprecmd()
{
touch ${pidfile}
chown ${alkane_user} ${pidfile}
if [ "${alkane_log_enable}" = "YES" ]; then
touch ${alkane_log_path}
chown ${alkane_user} ${alkane_log_path}
fi
if [ ! -d ${alkane_dir_db} ]; then
install -d -o ${alkane_user} ${alkane_dir_db}
fi
}
run_rc_command "$1"
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Nov 12, 21:14 (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4257548
Default Alt Text
(4 KB)
Attached To
Mode
rALK Alkane
Attached
Detach File
Event Timeline
Log In to Comment