Jump to content
  • 0

MaNGOS service won't start, manual run works fine.


ryanbush81

Question

I'm having similar issues as others stated running mangosd as a service in Ubuntu. I can start it manually with the same command that is in the service but can not start with systemctl as described in the Ubuntu 16 install guide.

 

My mangosd.service as described in the guide setup:

[Unit]
Description=WoW 3.3.5a
After=network.target mysql.service [email protected]

[Service]
Type=simple
User=mangos
ExecStart=/home/mangos/two/bin/mangosd -c /home/mangos/two/etc/mangosd.conf
StandardInput=tty
TTYPath=/dev/tty3
TTYReset=yes
TTYVHangup=yes
Restart=on-abort

[Install]
WantedBy=multi-user.target

 

My console output from systemctl status mangosd:

mangos@wow:~/two/bin$ systemctl status mangosd
● mangosd.service - WoW 3.3.5a
   Loaded: loaded (/etc/systemd/system/mangosd.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2017-05-27 17:12:54 EDT; 5s ago
 Main PID: 2208 (mangosd)
    Tasks: 4
   Memory: 3.2M
      CPU: 30ms
   CGroup: /system.slice/mangosd.service
           └─2208 /home/mangos/two/bin/mangosd -c /home/mangos/two/etc/mangosd.conf
mangos@wow:~/two/bin$ systemctl status mangosd
● mangosd.service - WoW 3.3.5a
   Loaded: loaded (/etc/systemd/system/mangosd.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2017-05-27 17:12:54 EDT; 7s ago
 Main PID: 2208 (mangosd)
    Tasks: 4
   Memory: 3.2M
      CPU: 41ms
   CGroup: /system.slice/mangosd.service
           └─2208 /home/mangos/two/bin/mangosd -c /home/mangos/two/etc/mangosd.conf
mangos@wow:~/two/bin$ systemctl status mangosd
● mangosd.service - WoW 3.3.5a
   Loaded: loaded (/etc/systemd/system/mangosd.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2017-05-27 17:12:54 EDT; 9s ago
 Main PID: 2208 (mangosd)
    Tasks: 4
   Memory: 3.2M
      CPU: 48ms
   CGroup: /system.slice/mangosd.service
           └─2208 /home/mangos/two/bin/mangosd -c /home/mangos/two/etc/mangosd.conf
mangos@wow:~/two/bin$ systemctl status mangosd
● mangosd.service - WoW 3.3.5a
   Loaded: loaded (/etc/systemd/system/mangosd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2017-05-27 17:13:04 EDT; 636ms ago
  Process: 2208 ExecStart=/home/mangos/two/bin/mangosd -c /home/mangos/two/etc/mangosd.conf (code=exited, status=1/FAILURE)
 Main PID: 2208 (code=exited, status=1/FAILURE)
mangos@wow:~/two/bin$

 

My console output from manual start:

***************************** removed above this line for ease of reading ************************************
Player::DeleteOldChars: Deleting all characters which have been deleted 30 days before...
Initialize AuctionHouseBot...
AHBOT is Disabled. Unable to open configuration file ../etc/ahbot.conf.

[Eluna]: Successfully loaded `lua_scripts/extensions/ObjectVariables.ext`
[Eluna]: Successfully loaded `lua_scripts/extensions/StackTracePlus/StackTracePlus.ext`
[Eluna]: Successfully loaded `lua_scripts/extensions/_Misc.ext`
[Eluna]: Executed 3 Lua scripts in 1 ms

_______________________________________________________

 MaNGOS Server: World Initialization Complete
_______________________________________________________

        Server Version : 2106009
      Database Version : Rel21.6.9

    Supporting Clients : 3.3.5a
                Builds : 12340

         Module Status -

                  SOAP : Enabled
                 Eluna : Enabled
                Warden : Enabled
      ScriptDev3 (SD3) : Enabled
    Remote Access (RA) : Enabled
_______________________________________________________

SERVER STARTUP TIME: 0 minutes 4 seconds

Starting Network Thread
Starting Network Thread
Max allowed socket connections: 1024
Starting Network Thread
World Updater Thread started (50ms min update interval)
Remote Access Thread started (listening on 0.0.0.0:3443)
SOAP Thread started (listening on 127.0.0.1:7878)
mangos>

 

 

Thanks in advance!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Thank you so much for your quick reply. After I was reading another post on the same subject I noticed his service file looked like:

 

[Unit]
Description=WoW Vanilla service
After=network.target mysql.service [email protected]

[Service]
Type=simple
User=mangos
StandardInput=tty
TTYPath=/dev/tty3
TTYReset=yes
TTYVHangup=yes
WorkingDirectory=/home/mangos/zero/zero_server/bin
ExecStart=/home/mangos/zero/zero_server/bin/mangosd -c /home/mangos/zero/zero_server/etc/mangosd.conf
Restart=on-abort

[Install]
WantedBy=multi-user.target

The only thing missing from the installation guides is the:

WorkingDirectory=/home/mangos/zero/bin

 

That solved my issue. Sorry for being quick on the question.

Link to comment
Share on other sites

Now THIS is brilliant, great ryanbush81

I tested the above and this also proved to be the solution to my problem of launching ahbot/aiplayerbot with mangosd as a service

WorkingDirectory=/home/mangos/zero/zero_server/bin

This meta should be added to the Instruction Wikis for all *NIX flavours - currently missing

 

Ciao

U

 

BTW - I suspect  the above meta might also render the -c option on the ExecStart line redundant

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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