mpd: Start service with exec
This commit is contained in:
parent
8a7b44a5e7
commit
568683316b
@ -73,8 +73,8 @@ in {
|
||||
description = "Music Player Daemon";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ pkgs.mpd ];
|
||||
script = "mpd --no-daemon ${mpdConf}";
|
||||
preStart = "mkdir -p ${cfg.dataDir} && chown -R mpd:mpd ${cfg.dataDir}";
|
||||
script = "exec mpd --no-daemon ${mpdConf}";
|
||||
};
|
||||
|
||||
users.extraUsers.mpd = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user