Monthly Archives: December 2016

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