Jump to content
  • 0

Ubuntu 16.04 -> Multiple Servers on Startup -> .service


Sorxes

Question

Hey!

I Just installed an zero and one server at the same time. shareing one realmdb and one realmd process. everything working fine.

now i wanted the servers to be startup automatically on system start. but when i use the provided "mangosd.service" way with two servers -> "zero_mangosd.service" and "one_mangosd.service" at the startup one kills another session and it doesnt work. changed all the needed informations. starting one works fine. altough starting both by hand in the terminal works fine.

think "TTYVHangup=yes" kills the second process

 

need help to execute both at startup und keep them restarting on crash. thx a lot!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

I got it working

Just change the ttypath number in the. Service file. 

 

For example the changed file. Looks like that. Changed it to 4 for the second server. While the first runs at 3

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

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

[Install]
WantedBy=multi-user.target
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