EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   SystemD (https://www.eqemulator.org/forums/showthread.php?t=39978)

jpyou127 09-01-2015 09:23 AM

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

jpyou127 09-01-2015 09:28 AM

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

Cilraaz 09-01-2015 10:36 AM

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

Code:

systemctl enable loginserver.service

jpyou127 09-01-2015 11:53 AM

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

demonstar55 09-01-2015 12:45 PM

journalctl --unit loginserver

or

systemctl status loginserver

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


All times are GMT -4. The time now is 10:31 AM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.