add devzat chat server
This commit is contained in:
20
roles/chat/files/devzat
Normal file
20
roles/chat/files/devzat
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name=devzat
|
||||
rcvar=devzat_enable
|
||||
|
||||
start_cmd="${name}_start"
|
||||
stop_cmd=":"
|
||||
|
||||
load_rc_config $name
|
||||
: ${devzat_enable:=no}
|
||||
: ${devzat_config="/usr/local/etc/devzat.yml"}
|
||||
: ${devzat_daemon="/usr/local/sbin/devzat"}
|
||||
|
||||
devzat_start() {
|
||||
DEVZAT_CONFIG="${devzat_config}" ${devzat_daemon}
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
18
roles/chat/files/devzat.yml
Normal file
18
roles/chat/files/devzat.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
# what port to host a server on ($PORT overrides this)
|
||||
port: 22
|
||||
|
||||
# what port to host profiling on (unimportant)
|
||||
profile_port: 5555
|
||||
|
||||
# where to store data such as bans and logs
|
||||
data_dir: /var/run/devzat-data
|
||||
|
||||
# where the SSH private key is stored
|
||||
key_file: /var/run/devzat-sshkey
|
||||
|
||||
# whether to censor messages (optional)
|
||||
censor: false
|
||||
|
||||
# a list of admin IDs and notes about them
|
||||
admins:
|
||||
82f6872383933e913b31dbb906e4c44ea2937bea9531ac11429f16cee2e5a975: 'Seher Taak: github.com/tlinden'
|
||||
Reference in New Issue
Block a user