seedrng #3

Open
lbailly wants to merge 57 commits from seedrng into main
3 changed files with 6 additions and 1 deletions
Showing only changes of commit 5b0df5aee2 - Show all commits

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
let let
inherit (pkgs) inherit (pkgs)
execline execline
@ -31,6 +31,8 @@ let
mkdir $out mkdir $out
cp -r $src $out/scripts cp -r $src $out/scripts
chmod -R +w $out chmod -R +w $out
substituteInPlace $out/scripts/{rc.init,rc.shutdown} \
--replace-warn 'pkgs.seedrng' "${lib.getExe' pkgs.seedrng "seedrng"}"
''; '';
}; };
service = dir { service = dir {

View file

@ -32,6 +32,8 @@ else
mkdir -m 0751 -p /run/services/state mkdir -m 0751 -p /run/services/state
fi fi
pkgs.seedrng
### If your services are managed by s6-rc: ### If your services are managed by s6-rc:
### (replace /run/service with your scandir) ### (replace /run/service with your scandir)
s6-rc-init -d -c /etc/s6-rc/compiled /run/service s6-rc-init -d -c /etc/s6-rc/compiled /run/service

View file

@ -4,6 +4,7 @@
### Things to do before hardware halt/reboot/poweroff. ### Things to do before hardware halt/reboot/poweroff.
### Ideally, it should be a single call to the service manager, ### Ideally, it should be a single call to the service manager,
### telling it to bring all the services down. ### telling it to bring all the services down.
pkgs.seedrng
### If your s6-linux-init-maker invocation was made with the -1 ### If your s6-linux-init-maker invocation was made with the -1
### option, messages from rc.shutdown will appear on /dev/console ### option, messages from rc.shutdown will appear on /dev/console