diff options
author | Fate <fate-tmw@googlemail.com> | 2008-11-24 15:21:16 -0700 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2008-11-24 15:21:16 -0700 |
commit | ee5ea021c66a6d8b011dd754ce620fd6b1cc60e1 (patch) | |
tree | 260a6da1d2608b9ab33afada086b03de60131611 /misc/scripts | |
parent | f9d990b2a553706334c3b85e211c0b10f6c7028f (diff) | |
parent | ee547337e2a5ae97dc52b3e67b4481247470eaf6 (diff) | |
download | tmwa-ee5ea021c66a6d8b011dd754ce620fd6b1cc60e1.tar.gz tmwa-ee5ea021c66a6d8b011dd754ce620fd6b1cc60e1.tar.bz2 tmwa-ee5ea021c66a6d8b011dd754ce620fd6b1cc60e1.tar.xz tmwa-ee5ea021c66a6d8b011dd754ce620fd6b1cc60e1.zip |
Merge branch 'master' of git@gitorious.org:tmw-eathena/mainline
Diffstat (limited to 'misc/scripts')
-rw-r--r-- | misc/scripts/start | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/misc/scripts/start b/misc/scripts/start index f73fafd..e80d507 100644 --- a/misc/scripts/start +++ b/misc/scripts/start @@ -1,32 +1,32 @@ -# /bin/bash
-
-./athena-start start
-sleep 30
-
-while [ true ] ; do
-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 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
+# /bin/bash + +./athena-start start +sleep 30 + +while [ true ] ; do +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 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
\ No newline at end of file |