IrosTheBeggar / mStream

The easiest music streaming server available
http://mstream.io
GNU General Public License v3.0
2.21k stars 186 forks source link

enable boot on startup setting is not persistent #352

Open dln949 opened 2 years ago

dln949 commented 2 years ago

mstream 5.9.4 installed on Ubuntu focal.

Works fine, except that the option to "enable boot on startup" is not persistent. Everytime I startup the computer, mstream thinks I never enabled that setting and I have to manually start mstream.

aroundmyroom commented 2 years ago

most easy way to fix that is to create a systemd startup script

this is my content

[Unit] Description=Music Mstream Server Documentation=Music After=network.target

[Service] Environment=NODE_PORT=3000 Type=simple User=root ExecStart=/usr/bin/node /home/mStream/cli-boot-wrapper.js Restart=on-failure

[Install] WantedBy=multi-user.target