forked from mirrors/nixpkgs
samba: Use startup notification
This ensures synchronous unit start.
This commit is contained in:
parent
3b89a6e020
commit
e993506d4c
|
@ -56,6 +56,7 @@ let
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${samba}/sbin/${appName} ${args}";
|
ExecStart = "${samba}/sbin/${appName} ${args}";
|
||||||
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||||
|
Type = "notify";
|
||||||
};
|
};
|
||||||
|
|
||||||
restartTriggers = [ configFile ];
|
restartTriggers = [ configFile ];
|
||||||
|
@ -167,12 +168,12 @@ in
|
||||||
type = types.attrsOf (types.attrsOf types.unspecified);
|
type = types.attrsOf (types.attrsOf types.unspecified);
|
||||||
example =
|
example =
|
||||||
{ public =
|
{ public =
|
||||||
{ path = "/srv/public";
|
{ path = "/srv/public";
|
||||||
"read only" = true;
|
"read only" = true;
|
||||||
browseable = "yes";
|
browseable = "yes";
|
||||||
"guest ok" = "yes";
|
"guest ok" = "yes";
|
||||||
comment = "Public samba share.";
|
comment = "Public samba share.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue