Quote:
Originally Posted by Flopz
Here are what I'm using for mine
|
I had to make some minor changes but your examples were perfect as a starting point. You saved me hours and hours. Thank you!
For Fedora 22, I chose to create five systemd scripts. The those unfamiliar with the process, I have provided details here
https://blog-harmonson.rhcloud.com/2...erver-minimal/ under the section titled Systemd Scripts.
eqemu-loginserver.service
Code:
[Unit]
Description=EQ Emulator Login server
After=mysqld.service
Requires=mysqld.service
[Service]
Type=simple
User=eqadmin
Group=users
WorkingDirectory=/home/eqadmin/eqemu/server
ExecStart=/home/eqadmin/eqemu/server/loginserver
[Install]
WantedBy=multi-user.target
eqemu-world.service
Code:
[Unit]
Description=EQ Emulator World server
After=eqemu-loginserver.service
Requires=eqemu-loginserver.service
[Service]
Type=simple
User=eqadmin
Group=users
WorkingDirectory=/home/eqadmin/eqemu/server
ExecStartPre=/home/eqadmin/eqemu/server/shared_memory
ExecStart=/home/eqadmin/eqemu/server/world
[Install]
WantedBy=multi-user.target
eqemu-queryserv.service
Code:
[Unit]
Description=EQ Emulator Query server
After=eqemu-world.service
Requires=eqemu-world.service
[Service]
Type=simple
User=eqadmin
Group=users
WorkingDirectory=/home/eqadmin/eqemu/server
ExecStart=/home/eqadmin/eqemu/server/queryserv
[Install]
WantedBy=multi-user.target
eqemu-ucs.service
Code:
Unit]
Description=EQ Emulator UCS server
After=eqemu-queryserv.service
Requires=eqemu-world.service
[Service]
Type=simple
User=eqadmin
Group=users
WorkingDirectory=/home/eqadmin/eqemu/server
ExecStart=/home/eqadmin/eqemu/server/ucs
[Install]
WantedBy=multi-user.target
eqemu-zones.service
Code:
[Unit]
Description=EQ Emulator Zone server
After=eqemu-ucs.service
Requires=eqemu-world.service
[Service]
Type=simple
User=eqadmin
Group=users
WorkingDirectory=/home/eqadmin/eqemu/server
ExecStart=/home/eqadmin/eqemu/server/eqlaunch zone
[Install]
WantedBy=multi-user.target