CodeCraft tips
[
ホーム
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
Debian GNU Linux/3.1 sarge/Subversion
をテンプレートにして作成
開始行:
* Debian GNU Linux 3.1 sarge - Subversion [#cd24d7a0]
** /etc/init.d/svnserve [#f2d4acb5]
#!/bin/sh
#
# Startup script for Subversion Server
#
set -e
# ----- Save and Set Environment Variables -------------...
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin...
DAEMON="/usr/bin/svnserve"
NAME=svnserve
DESC="Subversion server daemon"
USER=svn
GROUP=svn
REPOSITORY=/var/svn/
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
# ----- Define Function --------------------------------...
start() {
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--user $USER --group $GROUP --exec $DAEMON -- ...
if [ "$?" -eq 0 ]; then
pidof $DAEMON > $PIDFILE
fi
}
stop() {
start-stop-daemon --stop --quiet --pidfile $PIDFILE --...
rm -f $PIDFILE
}
wait() {
sleep 1
}
# ----- Execute The Requested Command ------------------...
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
start
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
stop
echo "."
;;
restart|force-reload)
echo -n "Restarting $DESC: $NAME"
stop
wait
start
echo "."
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-r...
exit 1
;;
esac
exit 0
~
** 関連ページ [#g6227c83]
-[[UNIX/Subversion]]
~
終了行:
* Debian GNU Linux 3.1 sarge - Subversion [#cd24d7a0]
** /etc/init.d/svnserve [#f2d4acb5]
#!/bin/sh
#
# Startup script for Subversion Server
#
set -e
# ----- Save and Set Environment Variables -------------...
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin...
DAEMON="/usr/bin/svnserve"
NAME=svnserve
DESC="Subversion server daemon"
USER=svn
GROUP=svn
REPOSITORY=/var/svn/
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
# ----- Define Function --------------------------------...
start() {
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--user $USER --group $GROUP --exec $DAEMON -- ...
if [ "$?" -eq 0 ]; then
pidof $DAEMON > $PIDFILE
fi
}
stop() {
start-stop-daemon --stop --quiet --pidfile $PIDFILE --...
rm -f $PIDFILE
}
wait() {
sleep 1
}
# ----- Execute The Requested Command ------------------...
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
start
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
stop
echo "."
;;
restart|force-reload)
echo -n "Restarting $DESC: $NAME"
stop
wait
start
echo "."
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-r...
exit 1
;;
esac
exit 0
~
** 関連ページ [#g6227c83]
-[[UNIX/Subversion]]
~
ページ名:
TrackBack(0)
|
外部リンク元
検索
サイト内
Web
最新の20件
2010-03-09
Software/Eclipse/3.4.x
2009-08-04
Ubuntu
Ubuntu/7.04 feisty
Ubuntu/8.04 hardy/システム環境設定
Ubuntu/8.04 hardy
2009-07-06
Linux/misc
2009-05-16
Debian GNU Linux/5.0 lenny/amd64/iceweasel
2009-05-03
Debian GNU Linux/5.0 lenny/システム環境設定
2009-03-22
Debian GNU Linux
Software/Eclipse/3.1.x
Software/Eclipse/3.2.x
Software/Eclipse
Debian GNU Linux/5.0 lenny
2008-08-12
UNIX/sendmail
UNIX/Subversion
2008-08-05
UNIX/proftpd
2008-08-01
UNIX
2008-05-13
UNIX/samba
2008-05-12
Debian GNU Linux/5.0 lenny/ユーザー環境設定
2008-04-15
Windows