Przeglądaj źródła

modified: Raspbian 2019-04-08

yoneda 5 lat temu
rodzic
commit
e4203743e6

+ 4 - 3
tree/home/mpd/setting/mpd.conf

@@ -1,7 +1,8 @@
-# 
+# NASを使う場合はsmb://ホスト名/共有名を指定
 #music_directory		"smb://yourserver/music"
-#music_directory		"/home/mpd/music
-music_directory			"/extSD"
+# ローカルストレージを使う場合
+music_directory			"/media"
+#
 playlist_directory		"/home/mpd/playlists"
 
 bind_to_address	"any"

+ 30 - 0
tree/lib/systemd/system/udev.service

@@ -0,0 +1,30 @@
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=udev Kernel Device Manager
+Documentation=man:systemd-udevd.service(8) man:udev(7)
+DefaultDependencies=no
+Wants=systemd-udevd-control.socket systemd-udevd-kernel.socket
+After=systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-sysusers.service
+Before=sysinit.target
+ConditionPathIsReadWrite=/sys
+
+[Service]
+Type=notify
+OOMScoreAdjust=-1000
+Sockets=systemd-udevd-control.socket systemd-udevd-kernel.socket
+Restart=always
+RestartSec=0
+ExecStart=/lib/systemd/systemd-udevd
+KillMode=mixed
+WatchdogSec=3min
+TasksMax=infinity
+MountFlags=shared
+MemoryDenyWriteExecute=yes
+RestrictRealtime=yes
+RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6