summarylogtreecommitdiffstats
path: root/hqplayerd.service
diff options
context:
space:
mode:
authorblackhole2021-04-20 13:56:15 +0200
committerblackhole2021-04-20 13:56:15 +0200
commit51284359f4abe5df0f59e18bb23040580e19b478 (patch)
tree053383dfe573e7b48d16c76a0218299c43d80748 /hqplayerd.service
parent1f55122af653fa089f4aae403c955da281380bff (diff)
downloadaur-51284359f4abe5df0f59e18bb23040580e19b478.tar.gz
Using sysusers.d and tmpfiles.d for hqplayer user
Diffstat (limited to 'hqplayerd.service')
-rw-r--r--[-rwxr-xr-x]hqplayerd.service12
1 files changed, 7 insertions, 5 deletions
diff --git a/hqplayerd.service b/hqplayerd.service
index 0f65c30888c..f49c58c50e7 100755..100644
--- a/hqplayerd.service
+++ b/hqplayerd.service
@@ -1,15 +1,17 @@
[Unit]
Description=HQPlayer Embedded daemon
-Requires=sound.target
-After=sound.target
+# if your distro uses systemd-networkd you may want to add
+# systemd-networkd-wait-online.service
+Requires=network-online.target sound.target systemd-udev-settle.service
+After=network-online.target sound.target systemd-udev-settle.service local-fs.target remote-fs.target
[Service]
Type=simple
-# add the line below (with 30 or more) if hqplayerd cannot find remote NAA in time
-# ExecStartPre=/bin/sleep 30
ExecStart=/usr/bin/hqplayerd
Restart=always
RestartSec=2
+EnvironmentFile=-/etc/default/hqplayerd
+User=hqplayer
[Install]
-WantedBy=default.target
+WantedBy=multi-user.target