aboutsummaryrefslogtreecommitdiff
path: root/mpd-music/music_refresh
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-26 15:27:42 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-26 15:27:42 +0100
commit4f7d84558d33ed36a1641de0637895446cbc9048 (patch)
tree48f10c28a8697011cdba69c80e94b8f92f5fa955 /mpd-music/music_refresh
parent6e83fc3324dea4ad7d7b53a90ad8a5f239face3d (diff)
downloadmulticonfig-4f7d84558d33ed36a1641de0637895446cbc9048.tar.gz
multiconfig-4f7d84558d33ed36a1641de0637895446cbc9048.tar.bz2
multiconfig-4f7d84558d33ed36a1641de0637895446cbc9048.zip
Add refresh cron script for mpd.home
Diffstat (limited to 'mpd-music/music_refresh')
-rwxr-xr-xmpd-music/music_refresh5
1 files changed, 5 insertions, 0 deletions
diff --git a/mpd-music/music_refresh b/mpd-music/music_refresh
new file mode 100755
index 0000000..6215de2
--- /dev/null
+++ b/mpd-music/music_refresh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if ! service music status; then
+ service music restart
+fi