diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2025-06-18 12:06:04 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2025-06-18 12:06:04 +0200 |
commit | 0640b403f2dc33fca3b1ca121012b98c2420ef24 (patch) | |
tree | ad7412b9bf9c24420cab47143004e5891992837f /board/mpd.sh | |
parent | 8e654849a088d7e2843233e90a0994829de638d0 (diff) |
Moved the systemd configuration in it’s own file
Diffstat (limited to 'board/mpd.sh')
-rw-r--r-- | board/mpd.sh | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/board/mpd.sh b/board/mpd.sh index 319d7a2..9d2e3f5 100644 --- a/board/mpd.sh +++ b/board/mpd.sh @@ -45,50 +45,6 @@ find "$BR2_EXTERNAL_PIAUDIO_PATH/local/playlists" -name '*.m3u' -type f -print0 cp $BR2_EXTERNAL_PIAUDIO_PATH/local/mpd_playlist.sh "${TARGET_DIR}/home/" -cat << __EOF__ > "${TARGET_DIR}/etc/systemd/system/playlists.service" -[Unit] -Description=Playlists -Before=mpd.target - -[Service] -Type=simple -ExecStart=find /home/ -name '*.m3u' -exec cp {} /home/playlists \; - -[Install] -WantedBy=multi-user.target -__EOF__ - -# Create the link to the system configuration -#ln -sf /etc/systemd/system/playlists.service "${TARGET_DIR}/usr/lib/systemd/system/multi-user.target.wants/playlists.service" enable_service "playlists.service" - -cat << __EOF__ > "${TARGET_DIR}/etc/systemd/system/rss_playlists.service" -[Unit] -Description=RSS Playlists -Wants=rss_playlists.timer - -[Service] -Type=simple -ExecStart=/home/mpd_playlist.sh - -[Install] -WantedBy=multi-user.target -__EOF__ - -cat << __EOF__ > "${TARGET_DIR}/etc/systemd/system/rss_playlists.timer" -[Unit] -Description=Update the RSS playlists every day -Requires=rss_playlists.service - -[Timer] -Unit=rss_playlists.service -OnBootSec=1min -OnUnitInactiveSec=1d -RandomizedDelaySec=15m - -[Install] -WantedBy=timers.target -__EOF__ - enable_service "rss_playlists.service" enable_service "rss_playlists.timer" |