3
0
Fork 0
forked from mirrors/nixpkgs

mpd service: replace script with serviceConfig.ExecStart

This commit is contained in:
Joachim Fasting 2016-09-09 02:49:09 +02:00
parent 009c1848c2
commit 0a6221578a
No known key found for this signature in database
GPG key ID: 7544761007FE4E08

View file

@ -122,12 +122,12 @@ in {
after = [ "network.target" "sound.target" ];
description = "Music Player Daemon";
wantedBy = [ "multi-user.target" ];
path = [ pkgs.mpd ];
preStart = "mkdir -p ${cfg.dataDir} && chown -R ${cfg.user}:${cfg.group} ${cfg.dataDir}";
script = "exec mpd --no-daemon ${mpdConf}";
serviceConfig = {
User = "${cfg.user}";
PermissionsStartOnly = true;
ExecStart = "${pkgs.mpd}/bin/mpd --no-daemon ${mpdConf}";
};
};