Giter VIP home page Giter VIP logo

nwn-servermanagement's Introduction

nwn-servermanagement

Generic bash scripts for Neverwinter Nights server management, running nwnx2 on Linux.

The scripts in this repository are generic and only depend on the environment variables specified in the YAML file. No script customization should be necessary in order to use this with any standard nwnx2 server environment.

nwserver is launched in a tmux session which can be shared between users of a specified group.

Dependencies

  • nwnx2
  • nwnstartup.sh (shell script to run nwserver with nwnx)
  • customized YAML file (see default.yml)

Configure

  1. Clone git clone https://github.com/jakkn/nwn-servermanagement.git
  2. Create your own YAML file cd nwn-servermanagement && cp default.yml master.yml
  3. Edit the YAML file to fit the server environment
Field Description Default
server_directory absolute path to the directory containing nwserver /home/nwn/nwnserver
user_group the linux user group to share the tmx session with nwn
runscript name of startup script in server directory nwnstartup.sh
socket_path location of tmux session socket /tmp/nwn_socket
target_session tmux session nwn

Use

  • Display help ./server-control.sh -h
  • Start server ./server-control.sh -s master.yml
  • Stop server ./server-control.sh -S [now|friendly] master.yml
  • Restart server ./server-control.sh -r [now|friendly] master.yml

Example of Cron jobs that start two servers (main and test server) on computer boot, with weekly nwserver reboots

@reboot cd /home/nwn/nwn-servermanagement && ./server-control.sh -s master.yml  >>/home/nwn/log/cron.log 2>&1
@reboot cd /home/nwn/nwn-servermanagement && ./server-control.sh -s develop.yml  >>/home/nwn/log/cron.log 2>&1

00 13 * * 2 cd /home/nwn/nwn-servermanagement && ./server-control.sh -r friendly master.yml  >>/home/nwn/log/cron.log 2>&1

00 13 * * 2 cd /home/nwn/nwn-servermanagement && ./server-control.sh -r friendly develop.yml  >>/home/nwn/log/cron.log 2>&

Credits

Based on the work of eeriegeek at http://www.entropywizard.net/nwn/crontab-entry.txt

nwn-servermanagement's People

Contributors

jakkn avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

nwn-servermanagement's Issues

Handle logging

Log directories should be backed up on server startup.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.