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 |
Services script:
Code:
# cat /lib/systemd/system/loginserver.service Peyton |
Shouldn't your "After" be mysql.service instead of mysql? Also have you enabled it via:
Code:
systemctl enable loginserver.service |
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 |
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:44 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.