Skip to content

Commit

Permalink
Added Upstart files
Browse files Browse the repository at this point in the history
These files may be useful for people running manaserv on Ubuntu. They
can for example be placed in /etc/init for easily stopping/starting and
restarting manaserv.
  • Loading branch information
bjorn committed Nov 28, 2013
1 parent 9ea0bb1 commit 524c27e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tools/upstart/manaserv-account.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
description "Mana account server"
author "Thorbjorn Lindeijer <thorbjorn@lindeijer.nl>"

start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]

kill timeout 10
respawn
respawn limit 10 5

setuid mana
setgid mana
chdir /path/to/working/directory
exec /usr/local/bin/manaserv-account --verbosity 3
17 changes: 17 additions & 0 deletions tools/upstart/manaserv-game.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
description "Mana game server"
author "Thorbjorn Lindeijer <thorbjorn@lindeijer.nl>"

start on (net-device-up
and local-filesystems
and runlevel [2345]
and started manaserv-account)
stop on runlevel [016]

kill timeout 10
respawn
respawn limit 10 5

setuid mana
setgid mana
chdir /path/to/working/directory
exec /usr/local/bin/manaserv-game --verbosity 3

0 comments on commit 524c27e

Please sign in to comment.