diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-09-01 09:40:12 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-09-01 09:40:12 +0000 |
commit | 366e7bf28c3f99c330dad67a63c7bf00b6443092 (patch) | |
tree | 5ade565044d3147903585c864e5ab9c350e95a7c /start | |
parent | de180195823a91544c99c7ef0f7c12ad05d07a60 (diff) | |
download | hercules-366e7bf28c3f99c330dad67a63c7bf00b6443092.tar.gz hercules-366e7bf28c3f99c330dad67a63c7bf00b6443092.tar.bz2 hercules-366e7bf28c3f99c330dad67a63c7bf00b6443092.tar.xz hercules-366e7bf28c3f99c330dad67a63c7bf00b6443092.zip |
eol-style for the startup scripts and batch files
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11104 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'start')
-rw-r--r-- | start | 70 |
1 files changed, 35 insertions, 35 deletions
@@ -1,35 +1,35 @@ -#!/bin/bash
-# modified by shazeya@syafi.com (NL130240)
-
-./athena-start start
-sleep 30
-
-while [ true ]; do
- if [ " 0" = "$(ps | grep -e log | wc -l)" ] ||
-# if [ " 0" = "$(ps | grep -e login | wc -l)" ] ||
- [ " 0" = "$(ps | grep -e char | wc -l)" ] ||
- [ " 0" = "$(ps | grep -e map | wc -l)" ]; then
- printf "Error:"
- date
- sleep 10
- printf "Checking:"
- date
- if [ " 0" = "$(ps | grep -e log | wc -l)" ] ||
-# if [ " 0" = "$(ps | grep -e login | wc -l)" ] ||
- [ " 0" = "$(ps | grep -e char | wc -l)" ] ||
- [ " 0" = "$(ps | grep -e map | wc -l)" ]; then
- printf "Error Confirmation:"
- date
- printf "Restoration:"
- date
- ./athena-start start
- else
- printf "Check Miss Sorry:"
- date
- fi
-# else
-# printf "Check OK:"
-# date
- fi
- sleep 10
-done
+#!/bin/bash +# modified by shazeya@syafi.com (NL130240) + +./athena-start start +sleep 30 + +while [ true ]; do + if [ " 0" = "$(ps | grep -e log | wc -l)" ] || +# if [ " 0" = "$(ps | grep -e login | wc -l)" ] || + [ " 0" = "$(ps | grep -e char | wc -l)" ] || + [ " 0" = "$(ps | grep -e map | wc -l)" ]; then + printf "Error:" + date + sleep 10 + printf "Checking:" + date + if [ " 0" = "$(ps | grep -e log | wc -l)" ] || +# if [ " 0" = "$(ps | grep -e login | wc -l)" ] || + [ " 0" = "$(ps | grep -e char | wc -l)" ] || + [ " 0" = "$(ps | grep -e map | wc -l)" ]; then + printf "Error Confirmation:" + date + printf "Restoration:" + date + ./athena-start start + else + printf "Check Miss Sorry:" + date + fi +# else +# printf "Check OK:" +# date + fi + sleep 10 +done |