summaryrefslogtreecommitdiff
path: root/templates/systemd/system/ices2.service
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-07-05 12:21:29 +0300
committerheqnx <root@heqnx.com>2025-07-05 12:21:29 +0300
commit9457306a881cfe476ee0abbdba4f6f1eaa80db9d (patch)
treea0051e68286eb93381a398d2681ec5a14f5c035e /templates/systemd/system/ices2.service
parent730705affa4407a9dee7c52e5deb825020da110d (diff)
downloadansible-icecast2-9457306a881cfe476ee0abbdba4f6f1eaa80db9d.tar.gz
ansible-icecast2-9457306a881cfe476ee0abbdba4f6f1eaa80db9d.zip
initial commit on a working icecast2 setup
Diffstat (limited to 'templates/systemd/system/ices2.service')
-rw-r--r--templates/systemd/system/ices2.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/systemd/system/ices2.service b/templates/systemd/system/ices2.service
new file mode 100644
index 0000000..d3a4c2f
--- /dev/null
+++ b/templates/systemd/system/ices2.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=ICES2 Icecast source client
+After=network.target icecast2.service
+Requires=icecast2.service
+
+[Service]
+Type=simple
+User=icecast2
+Group=icecast
+WorkingDirectory={{ radio_music_dir }}
+ExecStart=/usr/bin/ices2 /etc/icecast2/ices-playlist.xml
+Restart=on-failure
+RestartSec=5
+
+[Install]
+WantedBy=multi-user.target
+