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 09-01-2015, 09:23 AM
jpyou127's Avatar
jpyou127
Discordant
 
Join Date: Nov 2005
Posts: 270
Default SystemD

I am learning to use systemd on Deb 8. So far I have gotten a loginserver.service file to work, but I still cannot get the service to start on bootup.

My goal is to get this service to start at bootup as well as be persistent if it were to stop from an error.

Could someone maybe give me a hand at understanding why it will not start at boot? Right now I have it set to start at "idle". From command line and webmin it will start/stop/restart with no problems.


Peyton
Reply With Quote
  #2  
Old 09-01-2015, 09:28 AM
jpyou127's Avatar
jpyou127
Discordant
 
Join Date: Nov 2005
Posts: 270
Default

Services script:

Code:
# cat /lib/systemd/system/loginserver.service 
[Unit]
Description=EQ Emulator Login Server
After=mysql

[Service]
Type=idle
User=root
Group=root
WorkingDirectory=/root
ExecStart=/root/loginserver

[Install]
WantedBy=multi-user.target

Peyton
Reply With Quote
  #3  
Old 09-01-2015, 10:36 AM
Cilraaz
Sarnak
 
Join Date: Mar 2010
Posts: 77
Default

Shouldn't your "After" be mysql.service instead of mysql? Also have you enabled it via:

Code:
systemctl enable loginserver.service
Reply With Quote
  #4  
Old 09-01-2015, 11:53 AM
jpyou127's Avatar
jpyou127
Discordant
 
Join Date: Nov 2005
Posts: 270
Default

Verified I ran the systemctl command. I also removed the dependency of mysql. On this deb8 mysql is called by systemv for startup. I have rebooted a couple times and still no autostart.

This is a VM thats not in production, just trying to teach myself system admining a linux machine in order to apply to a production EQEMU server.

Peyton
Reply With Quote
  #5  
Old 09-01-2015, 12:45 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default

journalctl --unit loginserver

or

systemctl status loginserver

That being said, running as root is a horrible idea.
Reply With Quote
Reply

Tags
bootup, debian, linux, service, systemd


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 11:52 AM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3