Skip to content

Bot as systemd daemon breaks #894

Discussion options

You must be logged in to vote

ExecStart=/usr/bin/env java -Dnogui=true -Dconfig=/home/server/music-bot/config.txtjar /home/server/music-bot/JMusicBot-0.3.5.jar

Should be:

ExecStart=/usr/bin/env java -Dnogui=true -Dconfig=/home/server/music-bot/config.txt -jar /home/server/music-bot/JMusicBot-0.3.5.jar
You also probably want to set stuff like

[Unit]
After=network.target network-online.target
Requires=network.target network-online.target
[Service]
WorkingDirectory=/home/server/music-bot

Hope I could help.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by MichailiK
Comment options

You must be logged in to vote
1 reply
@Sanduhr32
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants