Initial bulk upload
This commit is contained in:
parent
7e6e1b6f5c
commit
870c50ec74
8 changed files with 175 additions and 4 deletions
31
initd/bbbsd2
Executable file
31
initd/bbbsd2
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
#! /bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: bbbsd2
|
||||
# Should-Start: console-screen dbus network-manager
|
||||
# Required-Start: $all
|
||||
# Required-Stop: $remote_fs
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: Start Outgoing connections BBBS Daemon
|
||||
### END INIT INFO
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin:/opt/bbbs
|
||||
|
||||
SCRIPT="/opt/bash/bbbsd2.sh"
|
||||
PROGRAMNAME="bbbs"
|
||||
case "$1" in
|
||||
start)
|
||||
su - root -c"
|
||||
nohup /opt/bash/bbbsd2.sh &"
|
||||
;;
|
||||
stop)
|
||||
skill $PROGRAMNAME
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
4
initd/bbbsd2.sh
Executable file
4
initd/bbbsd2.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
#kishpa
|
||||
/opt/bbbs/bbbs 2 2 TCPIP
|
||||
#eof
|
||||
31
initd/bbbsd3
Executable file
31
initd/bbbsd3
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
#! /bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: bbbsd3
|
||||
# Should-Start: console-screen dbus network-manager
|
||||
# Required-Start: $all
|
||||
# Required-Stop: $remote_fs
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: Start Ingoing connections BBBS Daemon
|
||||
### END INIT INFO
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin:/opt/bbbs
|
||||
|
||||
SCRIPT="/opt/bash/bbbsd3.sh"
|
||||
PROGRAMNAME="bbbsd"
|
||||
case "$1" in
|
||||
start)
|
||||
su - root -c"
|
||||
/opt/bash/bbbsd3.sh"
|
||||
;;
|
||||
stop)
|
||||
skill $PROGRAMNAME
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
15
initd/bbbsd3.sh
Executable file
15
initd/bbbsd3.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
#kishpa
|
||||
BBBSDIR=/opt/bbbs
|
||||
TZUTC=+0200
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin:$BBBSDIR
|
||||
#
|
||||
NOW=$(date +"%d-%m-%Y-%H-%M")
|
||||
FILE="backup.logs.$NOW.tar.gz"
|
||||
LOGS=/opt/bbbs/main
|
||||
tar czvf /opt/logs/$FILE $LOGS/log*
|
||||
rm -f $LOGS/log*
|
||||
#
|
||||
$BBBSDIR/bbbs bsetpack
|
||||
/opt/bbbs/bbbsd 3 995 telnetd:23 telnetd:992:ssl httpd:80 httpd:443:ssl ftpd:21 ftpd:990:ssl rawd:24554:binkp rawd:24555:binkp:ssl quiet fork
|
||||
#eof
|
||||
Loading…
Add table
Add a link
Reference in a new issue