s6-rc: fix service `run` file to have expected format
This commit is contained in:
parent
a5c36d39f4
commit
b129321af9
|
@ -8,7 +8,12 @@ let
|
||||||
(pkgs.writeTextFile {
|
(pkgs.writeTextFile {
|
||||||
name = "s6-${name}-run";
|
name = "s6-${name}-run";
|
||||||
destination = "/${normalizeName name}/run";
|
destination = "/${normalizeName name}/run";
|
||||||
text = run;
|
executable = true;
|
||||||
|
# text = run;
|
||||||
|
text = ''
|
||||||
|
#!/bin/sh
|
||||||
|
${run}
|
||||||
|
'';
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
else
|
else
|
||||||
|
@ -80,6 +85,9 @@ let
|
||||||
# s6-svscan scandir &
|
# s6-svscan scandir &
|
||||||
# s6-rc-init -c $compiled -l $PWD/live -d $PWD/scandir
|
# s6-rc-init -c $compiled -l $PWD/live -d $PWD/scandir
|
||||||
# s6-rc -l $PWD/live start svc-a
|
# s6-rc -l $PWD/live start svc-a
|
||||||
|
#
|
||||||
|
# N.B.: it seems the $compiled dir needs to be rw, for s6 to write lock files within it.
|
||||||
|
# so `cp` and `chmod -R 600` it, first.
|
||||||
compileServices = sources: with pkgs; stdenv.mkDerivation {
|
compileServices = sources: with pkgs; stdenv.mkDerivation {
|
||||||
name = "s6-user-services";
|
name = "s6-user-services";
|
||||||
src = sources;
|
src = sources;
|
||||||
|
|
Loading…
Reference in New Issue