mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-12-03 15:41:04 +01:00
modules/supervisord: init
This commit is contained in:
parent
e6c9902ddc
commit
dc61ae10fb
3 changed files with 189 additions and 0 deletions
|
|
@ -16,6 +16,17 @@ writeText "login-inner" ''
|
|||
echo "If nothing works, open an issue at https://github.com/t184256/nix-on-droid/issues or try the rescue shell."
|
||||
fi
|
||||
|
||||
${lib.optionalString config.supervisord.enable ''
|
||||
set +e
|
||||
if [ ! -e "${config.supervisord.socketPath}" ]; then
|
||||
${config.supervisord.package}/bin/supervisord -c /etc/supervisord.conf
|
||||
if [ $? != 0 ]; then
|
||||
echo "Warning: supervisord failed to start"
|
||||
fi
|
||||
fi
|
||||
set -e
|
||||
''}
|
||||
|
||||
${lib.optionalString config.build.initialBuild ''
|
||||
if [ -e /etc/UNINTIALISED ]; then
|
||||
export HOME="${config.user.home}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue