Systemd cant find my 'start.sh' file?
up vote
0
down vote
favorite
so i am trying to get a minecraft server running as a service of systemd
my minecraft.service has this content:
[Unit]
Description=Minecraft Server
After=network.target
[Service]
WorkingDirectory=/home/minecraft/
Type=simple
ExecStart=/home/minecraft/start.sh
User=minecraft
StandardOutput=journal
StandardError=inherit
RestartSec=30
[Install]
WantedBy=multi-user.target
This file is placed in /lib/systemd/system/minecraft.service
if i Start this service and check the status i get:
EXEC '/home/minecraft/start.sh' no such file or directory
But this file actually exists ...
and the file is working if i start it manually.
Ubuntu version is 18.10
after trying to head -n 1 /home/minecraft/start.sh like suggested it get:
#!/bin/bash
would be cool if someone can help :)
server java systemd services minecraft
add a comment |
up vote
0
down vote
favorite
so i am trying to get a minecraft server running as a service of systemd
my minecraft.service has this content:
[Unit]
Description=Minecraft Server
After=network.target
[Service]
WorkingDirectory=/home/minecraft/
Type=simple
ExecStart=/home/minecraft/start.sh
User=minecraft
StandardOutput=journal
StandardError=inherit
RestartSec=30
[Install]
WantedBy=multi-user.target
This file is placed in /lib/systemd/system/minecraft.service
if i Start this service and check the status i get:
EXEC '/home/minecraft/start.sh' no such file or directory
But this file actually exists ...
and the file is working if i start it manually.
Ubuntu version is 18.10
after trying to head -n 1 /home/minecraft/start.sh like suggested it get:
#!/bin/bash
would be cool if someone can help :)
server java systemd services minecraft
make sure the filename isn't different from what you have given to systemd!
– George Udosen
Nov 23 at 23:57
i just reviewed the filenames about 10 times ^^
– Sandro Schaurer
Nov 24 at 0:02
ok runls -l /home/minecraft/start.sh
and lets see the out put!
– George Udosen
Nov 24 at 0:05
-rwxrwxr-- 1 minecraft nogroup 85 Nov 24 00:16 /home/minecraft/start.sh ... ^^
– Sandro Schaurer
Nov 24 at 2:27
ok runhead -n 1 /home/minecraft/shart.sh
. Edit ( askubuntu.com/posts/1095529/edit ) your post with the results, don't comment.
– waltinator
Nov 24 at 4:20
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
so i am trying to get a minecraft server running as a service of systemd
my minecraft.service has this content:
[Unit]
Description=Minecraft Server
After=network.target
[Service]
WorkingDirectory=/home/minecraft/
Type=simple
ExecStart=/home/minecraft/start.sh
User=minecraft
StandardOutput=journal
StandardError=inherit
RestartSec=30
[Install]
WantedBy=multi-user.target
This file is placed in /lib/systemd/system/minecraft.service
if i Start this service and check the status i get:
EXEC '/home/minecraft/start.sh' no such file or directory
But this file actually exists ...
and the file is working if i start it manually.
Ubuntu version is 18.10
after trying to head -n 1 /home/minecraft/start.sh like suggested it get:
#!/bin/bash
would be cool if someone can help :)
server java systemd services minecraft
so i am trying to get a minecraft server running as a service of systemd
my minecraft.service has this content:
[Unit]
Description=Minecraft Server
After=network.target
[Service]
WorkingDirectory=/home/minecraft/
Type=simple
ExecStart=/home/minecraft/start.sh
User=minecraft
StandardOutput=journal
StandardError=inherit
RestartSec=30
[Install]
WantedBy=multi-user.target
This file is placed in /lib/systemd/system/minecraft.service
if i Start this service and check the status i get:
EXEC '/home/minecraft/start.sh' no such file or directory
But this file actually exists ...
and the file is working if i start it manually.
Ubuntu version is 18.10
after trying to head -n 1 /home/minecraft/start.sh like suggested it get:
#!/bin/bash
would be cool if someone can help :)
server java systemd services minecraft
server java systemd services minecraft
edited Nov 24 at 15:47
asked Nov 23 at 23:56
Sandro Schaurer
64
64
make sure the filename isn't different from what you have given to systemd!
– George Udosen
Nov 23 at 23:57
i just reviewed the filenames about 10 times ^^
– Sandro Schaurer
Nov 24 at 0:02
ok runls -l /home/minecraft/start.sh
and lets see the out put!
– George Udosen
Nov 24 at 0:05
-rwxrwxr-- 1 minecraft nogroup 85 Nov 24 00:16 /home/minecraft/start.sh ... ^^
– Sandro Schaurer
Nov 24 at 2:27
ok runhead -n 1 /home/minecraft/shart.sh
. Edit ( askubuntu.com/posts/1095529/edit ) your post with the results, don't comment.
– waltinator
Nov 24 at 4:20
add a comment |
make sure the filename isn't different from what you have given to systemd!
– George Udosen
Nov 23 at 23:57
i just reviewed the filenames about 10 times ^^
– Sandro Schaurer
Nov 24 at 0:02
ok runls -l /home/minecraft/start.sh
and lets see the out put!
– George Udosen
Nov 24 at 0:05
-rwxrwxr-- 1 minecraft nogroup 85 Nov 24 00:16 /home/minecraft/start.sh ... ^^
– Sandro Schaurer
Nov 24 at 2:27
ok runhead -n 1 /home/minecraft/shart.sh
. Edit ( askubuntu.com/posts/1095529/edit ) your post with the results, don't comment.
– waltinator
Nov 24 at 4:20
make sure the filename isn't different from what you have given to systemd!
– George Udosen
Nov 23 at 23:57
make sure the filename isn't different from what you have given to systemd!
– George Udosen
Nov 23 at 23:57
i just reviewed the filenames about 10 times ^^
– Sandro Schaurer
Nov 24 at 0:02
i just reviewed the filenames about 10 times ^^
– Sandro Schaurer
Nov 24 at 0:02
ok run
ls -l /home/minecraft/start.sh
and lets see the out put!– George Udosen
Nov 24 at 0:05
ok run
ls -l /home/minecraft/start.sh
and lets see the out put!– George Udosen
Nov 24 at 0:05
-rwxrwxr-- 1 minecraft nogroup 85 Nov 24 00:16 /home/minecraft/start.sh ... ^^
– Sandro Schaurer
Nov 24 at 2:27
-rwxrwxr-- 1 minecraft nogroup 85 Nov 24 00:16 /home/minecraft/start.sh ... ^^
– Sandro Schaurer
Nov 24 at 2:27
ok run
head -n 1 /home/minecraft/shart.sh
. Edit ( askubuntu.com/posts/1095529/edit ) your post with the results, don't comment.– waltinator
Nov 24 at 4:20
ok run
head -n 1 /home/minecraft/shart.sh
. Edit ( askubuntu.com/posts/1095529/edit ) your post with the results, don't comment.– waltinator
Nov 24 at 4:20
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1095529%2fsystemd-cant-find-my-start-sh-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
make sure the filename isn't different from what you have given to systemd!
– George Udosen
Nov 23 at 23:57
i just reviewed the filenames about 10 times ^^
– Sandro Schaurer
Nov 24 at 0:02
ok run
ls -l /home/minecraft/start.sh
and lets see the out put!– George Udosen
Nov 24 at 0:05
-rwxrwxr-- 1 minecraft nogroup 85 Nov 24 00:16 /home/minecraft/start.sh ... ^^
– Sandro Schaurer
Nov 24 at 2:27
ok run
head -n 1 /home/minecraft/shart.sh
. Edit ( askubuntu.com/posts/1095529/edit ) your post with the results, don't comment.– waltinator
Nov 24 at 4:20