mirror of
https://git.photon.obnh.io/AXSY/whois.git
synced 2026-03-12 18:01:32 +00:00
Initial commit: mwhois with SCION AS support and decimal AS conversion
Based on mwhois by Antonios A. Chariton Modifications for SCION AS support by Olaf Baumert, Axpo Systems AG
This commit is contained in:
27
mwhoisd.initd
Executable file
27
mwhoisd.initd
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="mwhoisd"
|
||||
description="MWHOIS Daemon"
|
||||
command="/root/whois/mwhoisd"
|
||||
command_background="yes"
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
start_stop_daemon_args="--chdir /root/whois"
|
||||
command_user="root"
|
||||
|
||||
# Redirect output to files
|
||||
output_log="/root/whois/mwhoisd.out"
|
||||
error_log="/root/whois/mwhoisd.err"
|
||||
start_stop_daemon_args="${start_stop_daemon_args} --stdout ${output_log} --stderr ${error_log}"
|
||||
# Make sure we're running as root to bind to port 43
|
||||
command_user="root"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
after firewall
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
touch "${output_log}" "${error_log}"
|
||||
chmod 644 "${output_log}" "${error_log}"
|
||||
chown root:root "${output_log}" "${error_log}"
|
||||
}
|
||||
Reference in New Issue
Block a user