Jump to content

xeross155

Members
  • Posts

    702
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by xeross155

  1. Those are variable declarations, however I removed them because I moved them somewhere else, so they are completely useless and don't do anything any more.
  2. If kreegoth's works, mine should work as well. Kreegoth can you create a diff between your branch and my branch ?
  3. Cron runs at max 1 time every minute, even with a bigger server I don't seem why that's a problem.
  4. xeross155

    some pointers

    No DasBlub is creating a new class thus he's pointing to that class. And why is it recommended to not use new ?
  5. Script will restart in 1 minute, which is fast enough, and better then looping script.
  6. I prefer using this script with cron as it's easily configurable and expandable (Written by me) #!/usr/bin/env python import commands import os from sys import exit # exit() config = { 'servername' : 'servername', # Name of the wow server (Prefix for the screen session) 'user' : 'username', # User that should run the server processes } # List of processes that should be checked periodically daemons = { 'logon' : '/path/to/mangos-realmd', 'realmname' : '/path/to/mangos-worldd' } for name, path in daemons.iteritems(): if not path in commands.getoutput('ps -Af'): os.chdir(os.path.dirname(path)) os.system('screen -A -m -d -S ' + config['servername'] + '_' + name + ' sudo -u ' + config['user'] + ' ' + path) print '[Restarter] Starting ' + name else: print '[Restarter]', name, 'is already running' Configure it add it to cron and you're ready to go.
  7. Currently there has been some progress in documenting, but getting flowcharts and stuff like that will prove useful.
  8. xeross155

    some pointers

    In what occasion would you not use new ?
  9. Once again you need to input the full path so in this case I think it's something like * * * * * /home/USERNAME_HERE/restarter.sh Replace USERNAME_HERE with your username in linux.
  10. The scripts work, you're doing something wrong, paste your crontab file again, and the output from manually running the restarter.
  11. You have to solve that yourself, install a program that supports 3 way merges like beyond compare 3 and set it up to work with git. Regards, Xeross
  12. You can just try if it still works
  13. Thanks , now we just need to get rid of this pesky weird bug.
  14. Well these changes can't be it, all you did was create some definitions for variables that I have moved, so I suspect you must've changed something else, weird indeed. Once again can someone zip and upload their non-working GIT repository so I can check what's going wrong.
  15. Then go continue searching on that page, and what do you mean it does not work, that gives me no info at all.
  16. http://udbwiki.webhop.net/index.php/Creature_template#unit_flags Perhaps UNIT_FLAG_DISABLE_MOVE
  17. Added you, don't show as online
  18. Darkhunter my script can restart as many realmd/worldd processes as you want, it's quite hard to explain it, perhaps we can chat on MSN or Yahoo or something, shoot me a PM with your address.
  19. http://www.computerhope.com/unix/uln.htm ln -s /path/to/the/script /etc/rc2.d/S99mangos However I'm not sure if this is the best way to do it, I suggest using /etc/rc.local if available, or my method.
  20. What do you mean with a link ?
  21. There was a packet logger named sniffitzt, dunno if it's still up-to-date.
  22. Those files don't change anything you just added in a few useless variables that aren't even used anymore
  23. It is a cronjob not a bash command, and the way you tried to call it tells me you don't understand what you're doing tbh. First of you need to edit the script so that it runs under the preferred user and uses the correct paths (I will make it easier to configure), after that you add that line I told you to your crontab file using "crontab -e" and of course correctly insert the path
  24. Currently I have this python script #! /usr/bin/python import commands import os from sys import exit # exit() servername = 'mangos' daemons = { 'logon' : '/path/to/mangos/mangos-realmd', 'world' : '/path/to/mangos/mangos-worldd' } for name, path in daemons.iteritems(): if not os.path.basename(path) in commands.getoutput('ps -A'): os.chdir(os.path.dirname(path)) os.system('screen -A -m -d -S ' + servername + '_' + name + ' sudo -u mangos_user ./' + os.path.basename(path)) print 'Starting ' + name else: print name + ' is already running' together with this cron job * * * * * python /path/to/restarter.py
  25. Perhaps I'll release the source, seems the best thing to do. But first I prefer getting everything working. It won't work on wine, however it will work on Mono probably.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use