M BUZZ CRAZE NEWS
// news

Ubuntu 20.04 LTS systemd start up script is not working "bad unit file setting"

By David Jones

I've set up a minecraft server, I've made a start script which works when I execute it. I've made a .service in systemd that should start the script when the server starts, but I am having issues with the systemd part of it. Here is what I have.enter image description here

[Unit]
Description=DeadSky minecraft server
After=network-online.target
[Service]
User=mcadmin
ExecStart=/home/mcadmin/MCServer/start.sh
[Install]
WantedBy=multi-user.target

Please help me.

I've made update suggested and still having issues.

1

1 Answer

This line

ExecStart=/home/mcadmin/MCServer/ ./start.sh is incorrect.

It should look like this:

ExecStart=/home/mcadmin/MCServer/start.sh

if start.sh is located in the home/mcadmin/MCServer directory.

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy