forked from mana/manaserv
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |