Run programs in the screen at startup using systemd

systemd is very simple and easy to use, here you can see how to run the program in a screen with the specified user
create new file

# nano /etc/systemd/system/radio.service

and put it into a new file

Description=Radio DJ
ExecStart=/usr/bin/screen -dmS screennameradio /etc/liquidsoap/radio-pro.liq
ExecStop=/usr/bin/screen -S screennameradio -X quit

and, of course

#systemctl enable radio
#systemctl start radio

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.