mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
samba: Use startup notification
This ensures synchronous unit start.
(cherry picked from commit e993506d4c
)
This commit is contained in:
parent
3a44d9e548
commit
0b37191f76
1 changed files with 7 additions and 6 deletions
|
@ -56,6 +56,7 @@ let
|
|||
serviceConfig = {
|
||||
ExecStart = "${samba}/sbin/${appName} ${args}";
|
||||
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||
Type = "notify";
|
||||
};
|
||||
|
||||
restartTriggers = [ configFile ];
|
||||
|
@ -167,12 +168,12 @@ in
|
|||
type = types.attrsOf (types.attrsOf types.unspecified);
|
||||
example =
|
||||
{ public =
|
||||
{ path = "/srv/public";
|
||||
"read only" = true;
|
||||
browseable = "yes";
|
||||
"guest ok" = "yes";
|
||||
comment = "Public samba share.";
|
||||
};
|
||||
{ path = "/srv/public";
|
||||
"read only" = true;
|
||||
browseable = "yes";
|
||||
"guest ok" = "yes";
|
||||
comment = "Public samba share.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue