The user specified in the conf should run MPD

This commit is contained in:
Unai Zalakain 2015-06-13 23:24:19 +02:00
parent 52f84a0400
commit 8811724ec9

View File

@ -118,7 +118,7 @@ in {
preStart = "mkdir -p ${cfg.dataDir} && chown -R ${cfg.user}:${cfg.group} ${cfg.dataDir}";
script = "exec mpd --no-daemon ${mpdConf}";
serviceConfig = {
User = "mpd";
User = "${cfg.user}";
PermissionsStartOnly = true;
};
};