| ²é¿´: 1501 | »Ø¸´: 5 | |||
| µ±Ç°Ö»ÏÔʾÂú×ãÖ¸¶¨Ìõ¼þµÄ»ØÌû£¬µã»÷ÕâÀï²é¿´±¾»°ÌâµÄËùÓлØÌû | |||
ÃÔ·µÄÓÎÏÀľ³æ (ÕýʽдÊÖ)
|
[ÇóÖú]
ÇóÖúubuntuÏÂmauiµÄ°²×°ÅäÖÃ
|
||
|
ÕâÊÇmaui.dµÄÒ»²¿·ÖÎļþ£º # Source the library functions . /etc/rc.d/init.d/redhat_functions MAUI_PREFIX=/usr/local/maui # let see how we were called case "$1" in start) echo -n "Starting MAUI Scheduler: " daemon $MAUI_PREFIX/sbin/maui echo ;; stop) echo -n "Shutting down MAUI Scheduler: " killproc maui ¡£¡£¡£¡£¡£¡£ ================================================= ¶øÕâЩstart¡¢stopº¯ÊýÊǸù¾ÝredhatµÄfunctionдµÄ Ò»ÏÂÊÇredhatµÄfunctionsÒ»²¿·Ö£º # A function to start a program. daemon() { # Test syntax. local gotbase= force= nicelevel corelimit local pid base= user= nice= bg= pid_file= local cgroup= nicelevel=0 while [ "$1" != "${1##[-+]}" ]; do case $1 in '') echo $"$0: Usage: daemon [+/-nicelevel] {program}" return 1;; --check) base=$2 gotbase="yes" shift 2 ;; --check=?*) base=${1#--check=} gotbase="yes" shift ;; --user) user=$2 shift 2 ;; --user=?*) user=${1#--user=} shift ;; --pidfile) pid_file=$2 shift 2 ;; --pidfile=?*) pid_file=${1#--pidfile=} shift ;; --force) force="force" shift ;; [-+][0-9]*) nice="nice -n $1" shift ;; =============================================== ¶øubuntuµÄfunctionÊÇÕâÑùдµÄ£º start_daemon () { #SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR #BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, #WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE #OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, #EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. start_daemon () { local force nice pidfile exec i args force=0 nice=0 pidfile=/dev/null OPTIND=1 while getopts fn:p: opt ; do case "$opt" in f) force=1;; n) nice="$OPTARG";; p) pidfile="$OPTARG";; esac done shift $(($OPTIND - 1)) if [ "$1" = '--' ]; then shift fi exec="$1"; shift args="--start --nicelevel $nice --quiet --oknodo" if [ $force = 1 ]; then /sbin/start-stop-daemon $args --chdir "$PWD" --startas $exec --pidfile /dev/null -- "$@" elif [ $pidfile ]; then /sbin/start-stop-daemon $args --chdir "$PWD" --exec $exec --oknodo --pidfile "$pidfile" -- "$@" else /sbin/start-stop-daemon $args --chdir "$PWD" --exec $exec -- "$@" fi } pidofproc () { local pidfile line i pids= status specified pid pidfile= specified= OPTIND=1 while getopts p: opt ; do case "$opt" in p) pidfile="$OPTARG"; specified=1;; esac done shift $(($OPTIND - 1)) base=${1##*/} if [ ! "$specified" ]; then pidfile="/var/run/$base.pid" fi if [ -n "${pidfile:-}" -a -r "$pidfile" ]; then read pid < "$pidfile" if [ -n "${pid:-}" ]; then if $(kill -0 "${pid:-}" 2> /dev/null); then echo "$pid" return 0 elif ps "${pid:-}" >/dev/null 2>&1; then echo "$pid" return 0 # program is running, but not owned by this user else return 1 # program is dead and /var/run pid file exists fi fi fi if [ -x /bin/pidof -a ! "$specified" ]; then status="0" /bin/pidof -o %PPID -x $1 || status="$?" if [ "$status" = 1 ]; then return 3 # program is not running fi return 0 fi return 4 # Unable to determine status } # start-stop-daemon uses the same algorithm as "pidofproc" above. /bin/pidof -o %PPID -x $1 || status="$?" if [ "$status" = 1 ]; then return 3 # program is not running fi return 0 fi return 4 # Unable to determine status } =================================================== ÕâÑùÎÒÖ´ÐÐstartµÄʱºò¾ÍÆô¶¯²»ÁËÁË£¬Çó¸ßÊÖ¸ø³ö¸öÖ÷Òâ½â¾öһϣ¬±ð˵ÈÃÎÒ×°»Øredhat¡£¡£¡£¡£¡£¡£ |
» ²ÂÄãϲ»¶
½ñÌìÎñί»á¿ªÍêÁË£¬Ã÷Ìì³ö½á¹ûÂð
ÒѾÓÐ22È˻ظ´
ÊÛSCIÒ»ÇøT0PÎÄÕ£¬ÎÒ:8O.55.1.O.5.4,¿ÆÄ¿ÆëÈ«,¿É+¼±
ÒѾÓÐ3È˻ظ´
2026Äê8ÔÂ25ÈÕ¹ú×ÔÈ»·Å°ñǰͻȻÊÕµ½ÁÐÈëÆÀÉóר¼ÒÓʼþ£¬ÓйØÏµÂð£¿
ÒѾÓÐ19È˻ظ´
ÊÛSCIÒ»ÇøT0PÎÄÕ£¬ÎÒ:8.O.55.1.O.5.4,¿ÆÄ¿È«,¿É+¼±
ÒѾÓÐ3È˻ظ´
ÔÚ¼á±ù»¹¸Ç×ű±º£µÄʱºò£¬ÎÒ¿´µ½ÁËŷŵÄ÷»¨¡£
ÒѾÓÐ9È˻ظ´
Ã÷ÌìÓ¦¸Ã¿É²éÁË£¡£¿
ÒѾÓÐ6È˻ظ´
ÓÐûÓдóÉñ°ïÎÒ¿´¿´»ù½ð´úÂë
ÒѾÓÐ10È˻ظ´
·Å°ñǰµÄ²»µ¶¨
ÒѾÓÐ19È˻ظ´
ijЩ»ú¹¹£¬ÒÔЧÂʵÍΪÈÙ£¬ÒÔЧÂʵÍ×÷Ϊ´æÔÚ¸Ð
ÒѾÓÐ10È˻ظ´
2026¹ú×ÔÈ»º¯ÆÀ·Ñµ½ÕË
ÒѾÓÐ23È˻ظ´
» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:
ÓÐÔÚubuntuϰ²×°materials studio ³É¹¦µÄô£¿
ÒѾÓÐ11È˻ظ´
¡¾Ô´´¡¿CPMD3.15.1 ºÍ3.13.2ÔÚUbuntuϵÄ×Ô¶¯ÏÂÔØ£¬°²×°£¬²âÊԽű¾ £¨Gfortran£©
ÒѾÓÐ12È˻ظ´
¡¾ÇóÖú³É¹¦¡¿ÇóubuntuÖÐvasp³ÌÐò°²×°×îºóÒ»²½³ö´í£¡£¡ÓôÃÆ£¡£¡£¡
ÒѾÓÐ12È˻ظ´
¡¾ÇóÖú¡¿ÈçºÎ½øÐÐUbuntuÏÂfortran¿ª·¢µÄ»·¾³ÅäÖÃ
ÒѾÓÐ3È˻ظ´
ubuntuϵİ칫Èí¼þ
ÒѾÓÐ6È˻ظ´
¡¾ÇóÖú¡¿ÔÚubuntuϰ²×°ms 4.2ʧ°Ü
ÒѾÓÐ35È˻ظ´
ÃÔ·µÄÓÎÏÀ
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 3 (Ó×¶ùÔ°)
- ½ð±Ò: 3602.9
- É¢½ð: 351
- Ìû×Ó: 387
- ÔÚÏß: 272Сʱ
- ³æºÅ: 747246
- ×¢²á: 2009-04-13
- ÐÔ±ð: GG
- רҵ: °ëµ¼Ìå²ÄÁÏ
|
ÕâÊÇlinuxϵĶÓÁйÜÀíµÄÈí¼þ£¬ÎÒÏëÓÃtorqueºÍmaui¹ÜÀíÎҵļÆËãÈÎÎñµÄ¶ÓÁа¡ ¹ØÓÚ´íÎóÌáʾubuntuÏÂÊÇûÓÐrc.dÎļþ¼ÐµÄ£¬ËùÒÔÔÀ´µÄ´íÎóÊÇÕÒ²»µ½/etc/rc.d/init.d/functions,ºóÀ´ÎÒ°ÑubuntuϵÄ/lib.lsb/linit_functions ln¹ýÈ¥ºó¾ÍÊÇÌáʾdaemon not found £¬ÎÒ°ÑËü¸Ä³ÉubuntuϵÄstart_daemonºó£¬¾Íû·´Ó¦ÁË£¬µ«Ò²Æô¶¯²»ÁË¡£Ö±½Ó°ÑredhatϵͳµÄfunctions copy¹ýÀ´Ò²²»ÄÜÓã¬ÎÒÏÖÔÚµÄÎÊÌâ¾ÍÊÇ×°ÍêÕâ¸öÈí¼þºóû·¨ÓÃËü£¡ |
3Â¥2011-09-01 12:04:16
bingmou
½ð³æ (ÖøÃûдÊÖ)
- 1STÇ¿Ìû: 5
- Ó¦Öú: 2 (Ó×¶ùÔ°)
- ¹ó±ö: 0.446
- ½ð±Ò: 431.9
- É¢½ð: 171
- ºì»¨: 17
- Ìû×Ó: 1207
- ÔÚÏß: 114.8Сʱ
- ³æºÅ: 487243
- ×¢²á: 2007-12-28
- רҵ: ²ÄÁÏ¿ÆÑ§/°ëµ¼Ìå
- ¹ÜϽ: µÚÒ»ÐÔÔÀí
¡¾´ð°¸¡¿Ó¦Öú»ØÌû
¡ï
youzhizhe(½ð±Ò+1): лл½»Á÷¡£ 2011-09-01 11:32:36
ÃÔ·µÄÓÎÏÀ(½ð±Ò+1): 2011-09-06 20:11:18
youzhizhe(½ð±Ò+1): лл½»Á÷¡£ 2011-09-01 11:32:36
ÃÔ·µÄÓÎÏÀ(½ð±Ò+1): 2011-09-06 20:11:18
|
Ê×ÏÈ£¬ÕâÊÇʲô¶«Î÷£¿ Æä´Î£¬³öÏÖÁËʲô´íÎóÌáʾ£¿ ×îºó£¬ÄãÏëҪʲô£¿ |
2Â¥2011-09-01 11:23:23
bingmou
½ð³æ (ÖøÃûдÊÖ)
- 1STÇ¿Ìû: 5
- Ó¦Öú: 2 (Ó×¶ùÔ°)
- ¹ó±ö: 0.446
- ½ð±Ò: 431.9
- É¢½ð: 171
- ºì»¨: 17
- Ìû×Ó: 1207
- ÔÚÏß: 114.8Сʱ
- ³æºÅ: 487243
- ×¢²á: 2007-12-28
- רҵ: ²ÄÁÏ¿ÆÑ§/°ëµ¼Ìå
- ¹ÜϽ: µÚÒ»ÐÔÔÀí
¡¾´ð°¸¡¿Ó¦Öú»ØÌû
¡ï ¡ï
youzhizhe(½ð±Ò+2): лл½»Á÷¡£ 2011-09-01 19:03:53
ÃÔ·µÄÓÎÏÀ(½ð±Ò+5): 2011-09-06 20:10:58
youzhizhe(½ð±Ò+2): лл½»Á÷¡£ 2011-09-01 19:03:53
ÃÔ·µÄÓÎÏÀ(½ð±Ò+5): 2011-09-06 20:10:58
|
Õâ¸öÓ¦¸ÃÊÇϵͳµÄÅäÖÃÎļþ²¼¾Ö²»Í¬µ¼Öµģ¬debianÌåϵºÍredhatÓÐЩ¶«Î÷ÊDz»ÄÜ»¥Óõġ£ÎҼǵÃdebianÏÂÃæ¾ÍÊÇûÓÐrc.dµÄ£¬¶øÊÇÖ±½ÓµÄrc0.d,rc1.d.... ËùÒÔ£¬ÄãҪŪ¶®ÎªÊ²Ã´mauiÐèÒªredhatµÄÄǸöfunctionsºÍÕâ¸öfunctionsÀïÃæÓÐÄÄЩÊÇnauiÐèÒªµÄ£¬ÊÔÊÔ×Ô¼ºÔÚubuntuÀïÃæÕÒµ½ÕâЩfunctions£¬»òÕßÖ±½Ócopy¹ýÀ´¡£ »òÕßÄãÖ±½Óapt-get install torqueÊÔÊÔ |
4Â¥2011-09-01 12:32:10
ÃÔ·µÄÓÎÏÀ
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 3 (Ó×¶ùÔ°)
- ½ð±Ò: 3602.9
- É¢½ð: 351
- Ìû×Ó: 387
- ÔÚÏß: 272Сʱ
- ³æºÅ: 747246
- ×¢²á: 2009-04-13
- ÐÔ±ð: GG
- רҵ: °ëµ¼Ìå²ÄÁÏ
5Â¥2011-09-01 12:45:02









»Ø¸´´ËÂ¥
28