Browse Source
* small format-fixes * use aliases from /etc/init.d/gobals * allow stop w/o flagfile * add own init-scripts for tuxcald and tuxmaildmaster
vanhofen
8 years ago
39 changed files with 243 additions and 142 deletions
@ -0,0 +1,20 @@ |
|||
#!/bin/sh |
|||
|
|||
. /etc/init.d/globals |
|||
|
|||
case $1 in |
|||
start) |
|||
if [ -e /var/etc/.tuxcald ]; then |
|||
SHOWINFO "starting ..." |
|||
/bin/tuxcald |
|||
fi |
|||
;; |
|||
stop) |
|||
SHOWINFO "stopping ..." |
|||
pid=$(cat /var/run/tuxcald.pid 2>/dev/null) |
|||
test -n "$pid" && kill $pid || true |
|||
;; |
|||
*) |
|||
echo "[$BASENAME] Usage: $0 {start|stop}" |
|||
;; |
|||
esac |
@ -0,0 +1,21 @@ |
|||
#!/bin/sh |
|||
|
|||
. /etc/init.d/globals |
|||
|
|||
case $1 in |
|||
start) |
|||
if [ -e /var/etc/.tuxmaild ]; then |
|||
SHOWINFO "starting ..." |
|||
/bin/tuxmaild |
|||
sleep 1 |
|||
fi |
|||
;; |
|||
stop) |
|||
SHOWINFO "stopping ..." |
|||
pid=$(cat /var/run/tuxmail.pid 2>/dev/null) |
|||
test -n "$pid" && kill $pid || true |
|||
;; |
|||
*) |
|||
echo "[$BASENAME] Usage: $0 {start|stop}" |
|||
;; |
|||
esac |
@ -1,15 +1,18 @@ |
|||
#!/bin/sh |
|||
|
|||
. /etc/init.d/globals |
|||
|
|||
case $1 in |
|||
start) |
|||
if [ -e /var/etc/.ushare ]; then |
|||
ushare -D -n "`hostname`" |
|||
ushare -D -n "$(hostname)" |
|||
fi |
|||
;; |
|||
;; |
|||
stop) |
|||
if [ -e /var/etc/.ushare ]; then |
|||
trap "" INT |
|||
kill -INT `pidof ushare` |
|||
fi |
|||
;; |
|||
trap "" INT |
|||
kill -INT $(pidof ushare) |
|||
;; |
|||
*) |
|||
echo "[$BASENAME] Usage: $0 {start|stop}" |
|||
;; |
|||
esac |
|||
|
@ -1,12 +1,18 @@ |
|||
#!/bin/sh |
|||
|
|||
. /etc/init.d/globals |
|||
|
|||
CONF=/etc/vsftpd.conf |
|||
|
|||
case $1 in |
|||
start) |
|||
chown 0:0 $CONF |
|||
vsftpd $CONF |
|||
;; |
|||
;; |
|||
stop) |
|||
killall vsftpd |
|||
;; |
|||
;; |
|||
*) |
|||
echo "[$BASENAME] Usage: $0 {start|stop}" |
|||
;; |
|||
esac |
|||
|
Loading…
Reference in new issue