CodeCraft tips
[
ホーム
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
tightvnc for Linux
をテンプレートにして作成
開始行:
* tightvnc for Linux [#j4a7a30d]
** 起動スクリプト [#pa68055a]
#!/bin/bash
#
# chkconfig: 345 96 04
# description: vncserver
#
# Startup script for VNC Server
#
# ----- Save and Set Environment Variables -------------...
PROGDIR=/usr/bin/vncserver
PROGUSER=developer
UMASK_VALUE=002
LOCALE=ja_JP.eucJP
DISPLAYNUMBER=0
# ----- Define Function --------------------------------...
start() {
su - ${PROGUSER} -c "umask ${UMASK_VALUE}; LC_ALL=${LO...
}
stop() {
su - ${PROGUSER} -c "umask ${UMASK_VALUE}; LC_ALL=${LO...
}
# ----- Execute The Requested Command ------------------...
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo "Usage:"
echo " $0 (start|stop|reload)"
echo ""
echo "Commands:"
echo " start - Start server"
echo " stop - Stop server"
echo " restart - Restart server"
echo ""
;;
esac
exit 0
終了行:
* tightvnc for Linux [#j4a7a30d]
** 起動スクリプト [#pa68055a]
#!/bin/bash
#
# chkconfig: 345 96 04
# description: vncserver
#
# Startup script for VNC Server
#
# ----- Save and Set Environment Variables -------------...
PROGDIR=/usr/bin/vncserver
PROGUSER=developer
UMASK_VALUE=002
LOCALE=ja_JP.eucJP
DISPLAYNUMBER=0
# ----- Define Function --------------------------------...
start() {
su - ${PROGUSER} -c "umask ${UMASK_VALUE}; LC_ALL=${LO...
}
stop() {
su - ${PROGUSER} -c "umask ${UMASK_VALUE}; LC_ALL=${LO...
}
# ----- Execute The Requested Command ------------------...
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo "Usage:"
echo " $0 (start|stop|reload)"
echo ""
echo "Commands:"
echo " start - Start server"
echo " stop - Stop server"
echo " restart - Restart server"
echo ""
;;
esac
exit 0
ページ名:
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