Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-21-2019, 06:28 PM
timber28
Fire Beetle
 
Join Date: Feb 2009
Location: florida
Posts: 1
Default

Here is a tad better way to do it (I try to avoid doing stuff like this in cron), if you want to be able to control it with systemctl.

Edit the server_start script you want to use and server_stop.sh and add a cd /home/eqemu/server (or wherever you installed it) as the 2nd line.

Code:
#!/usr/bin/env bash
cd /home/eqemu/server
Then create this in /etc/systemd/system as eqemu.service
Code:
[Unit]
Description=EQ Emulator Server with Login server
After=mysql.service

[Service]
User=eqemu
Group=eqemu
Type=forking
ExecStart=/home/eqemu/server/server_start_with_login.sh
ExecStop=/home/eqemu/server/server_stop.sh
Restart=on-failure

[Install]
WantedBy=multi-user.target
Then run systemctl daemon-reload
This will let you see the status of the service with systemctl status eqemu, and you can start/stop the server with the normal start/stop commands.

Don't forget to systemctl enable eqemu to enable it starting at boot.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:22 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3