initial commit
This commit is contained in:
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
#--- import colors and init-funcs ---
|
||||
. /usr/lib/init/colors.sh
|
||||
. /usr/lib/init/init-funcs.sh
|
||||
#------------------------------------
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "$BBLUE**$BYELLOW Starting dnsd\n$RESET"
|
||||
/usr/bin/dnsd -d -c /etc/dnsd.conf
|
||||
check $? "start dnsd"
|
||||
echo $(pgrep dnsd) > /var/run/dnsd.pid
|
||||
;;
|
||||
stop)
|
||||
printf "$BBLUE**$BYELLOW Stopping dnsd\n$RESET"
|
||||
kill $(cat /var/run/dnsd.pid)
|
||||
check $? "stop dnsd"
|
||||
rm /var/run/dnsd.pid
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
help
|
||||
return 1
|
||||
esac
|
||||
return $?
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
#--- import colors and init-funcs ---
|
||||
. /usr/lib/init/colors.sh
|
||||
. /usr/lib/init/init-funcs.sh
|
||||
#------------------------------------
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "$BBLUE**$BYELLOW Starting dnsmasq\n$RESET"
|
||||
/usr/bin/dnsmasq --user=dnsmasq --pid-file=/var/run/dnsmasq.pid
|
||||
check $? "start dnsmasq"
|
||||
;;
|
||||
stop)
|
||||
printf "$BBLUE**$BYELLOW Stopping dnsmasq\n$RESET"
|
||||
kill $(cat /var/run/dnsmasq.pid)
|
||||
check $? "stop dnsmasq"
|
||||
rm /var/run/dnsmasq.pid &> /dev/null
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
help
|
||||
;;
|
||||
esac
|
||||
return $?
|
||||
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
#--- import colors and init-funcs ---
|
||||
. /usr/lib/init/colors.sh
|
||||
. /usr/lib/init/init-funcs.sh
|
||||
#------------------------------------
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "$BBLUE**$BYELLOW Starting ftpd\n$RESET"
|
||||
tcpsvd -vE 0.0.0.0 21 ftpd -w -S -A /srv/ftpd &>/dev/null &
|
||||
check $? "start ftpd"
|
||||
echo $(pgrep tcpsvd) > /ar/run/ftpd.pid
|
||||
;;
|
||||
stop)
|
||||
printf "$BBLUE**$BYELLOW Stopping ftpd\n$RESET"
|
||||
kill $(cat /var/run/ftpd.pid)
|
||||
check $? "stop ftpd"
|
||||
rm /var/run/ftpd.pid
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
help
|
||||
return 1
|
||||
esac
|
||||
return $?
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
#--- import colors and init-funcs ---
|
||||
. /usr/lib/init/colors.sh
|
||||
. /usr/lib/init/init-funcs.sh
|
||||
#------------------------------------
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "$BBLUE**$BYELLOW Setting up hostname\n$RESET"
|
||||
/usr/bin/hosname -F /etc/hostname
|
||||
check $? "Set up hostname"
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
restart|reload)
|
||||
;;
|
||||
*)
|
||||
help
|
||||
return 1
|
||||
esac
|
||||
return $?
|
||||
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
#--- import colors and init-funcs ---
|
||||
. /usr/lib/init/colors.sh
|
||||
. /usr/lib/init/init-funcs.sh
|
||||
#------------------------------------
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "$BBLUE**$BYELLOW Starting httpd\n$RESET"
|
||||
/usr/bin/httpd -h /srv/www
|
||||
check $? "start httpd"
|
||||
echo $(pgrep httpd) > /var/run/httpd.pid
|
||||
;;
|
||||
stop)
|
||||
printf "$BBLUE**$BYELLOW Stopping httpd\n$RESET"
|
||||
kill $(cat /var/run/httpd.pid)
|
||||
check $? "stop httpd"
|
||||
rm /var/run/httpd.pid
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
help
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
return $?
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
#--- import colors and init-funcs ---
|
||||
. /usr/lib/init/colors.sh
|
||||
. /usr/lib/init/init-funcs.sh
|
||||
#------------------------------------
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "$BBLUE**$BYELLOW Starting klogd\n$RESET"
|
||||
/usr/bin/klogd
|
||||
check $? "start klogd"
|
||||
;;
|
||||
stop)
|
||||
printf "$BBLUE**$BYELLOW Stopping klogd\n$RESET"
|
||||
kill $(cat /var/run/klogd.pid)
|
||||
check $? "stop klogd"
|
||||
rm /var/run/klogd.pid &> /dev/null
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
help
|
||||
;;
|
||||
esac
|
||||
reurn $?
|
||||
Executable
+30
@@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
|
||||
#--- import colors and init-funcs ---
|
||||
. /usr/lib/init/colors.sh
|
||||
. /usr/lib/init/init-funcs.sh
|
||||
#------------------------------------
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "$BBLUE**$BYELLOW Starting networking\n$RESET"
|
||||
/usr/bin/ifup -a
|
||||
check $? "networking"
|
||||
echo $! > /var/run/networking.pid
|
||||
;;
|
||||
stop)
|
||||
printf "$BBLUE**$BYELLOW Stopping netowrking\n$RESET"
|
||||
/usr/bin/ifdown -a
|
||||
check $? "Stop networking"
|
||||
if [ -f /var/run/neworking.pid ]; then
|
||||
rm /var/run/networking.pid
|
||||
fi
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
help
|
||||
return 1
|
||||
esac
|
||||
return $?
|
||||
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
#--- import colors and init-funcs ---
|
||||
. /usr/lib/init/colors.sh
|
||||
. /usr/lib/init/init-funcs.sh
|
||||
#------------------------------------
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "$BBLUE**$BYELLOW Starting syslogd\n$RESET"
|
||||
/usr/bin/syslogd
|
||||
check $? "start syslogd"
|
||||
;;
|
||||
stop)
|
||||
printf "$BBLUE**$BYELLOW Stopping syslogd\n$RESET"
|
||||
kill $(cat /var/run/syslogd.pid)
|
||||
check $? "stop syslogd"
|
||||
rm /var/run/syslogd.pid &> /dev/null
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
help
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
return $?
|
||||
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
#--- import colors and init-funcs ---
|
||||
. /usr/lib/init/colors.sh
|
||||
. /usr/lib/init/init-funcs.sh
|
||||
#------------------------------------
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "$BBLUE**$BYELLOW Starting telnetd\n$RESET"
|
||||
/usr/bin/telnetd -p 23
|
||||
check $? "start telnetd"
|
||||
echo $(gprep telnetd) > /var/run/telnetd.pid
|
||||
;;
|
||||
stop)
|
||||
printf "$BBLUE**$BYELLOW Stopping telnetd\n$RESET"
|
||||
kill $(cat /var/run/telnetd.pid)
|
||||
check $? "stop telnetd"
|
||||
rm /var/run/telnetd.pid &> /dev/null
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
help
|
||||
;;
|
||||
esac
|
||||
return $?
|
||||
Reference in New Issue
Block a user