起動スクリプト(やっつけ仕様)
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
[[起動スクリプト]]
#!/bin/bash
#
# qmail init script
#
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
start() {
# Start daemons.
exec env - PATH="/var/qmail/bin:$PATH" qmail-start ./Mai...
## POP3
exec env - ALLOWPLAIN='' DOMAINOWNER='' /usr/local/bin/t...
## POP3S
exec env - ALLOWPLAIN='' DOMAINOWNER='' /usr/local/bin/t...
## SMTP
/usr/local/bin/tcpserver -vHR -x /etc/tcp.smtp.cdb 0 smt...
}
stop() {
# Stop daemons.
killall tcpserver
killall qmail-send
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
終了行:
[[起動スクリプト]]
#!/bin/bash
#
# qmail init script
#
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
start() {
# Start daemons.
exec env - PATH="/var/qmail/bin:$PATH" qmail-start ./Mai...
## POP3
exec env - ALLOWPLAIN='' DOMAINOWNER='' /usr/local/bin/t...
## POP3S
exec env - ALLOWPLAIN='' DOMAINOWNER='' /usr/local/bin/t...
## SMTP
/usr/local/bin/tcpserver -vHR -x /etc/tcp.smtp.cdb 0 smt...
}
stop() {
# Stop daemons.
killall tcpserver
killall qmail-send
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
ページ名: