lambdabot: add named pipe for incoming commands
This commit is contained in:
parent
91f3912b5d
commit
0f5d5f9d12
@ -52,9 +52,18 @@ in
|
||||
script = ''
|
||||
mkdir -p ~/.lambdabot
|
||||
cd ~/.lambdabot
|
||||
exec ${cfg.package}/bin/lambdabot -e 'rc ${rc}'
|
||||
mkfifo /run/lambdabot/offline
|
||||
(
|
||||
echo 'rc ${rc}'
|
||||
while true; do
|
||||
cat /run/lambdabot/offline
|
||||
done
|
||||
) | ${cfg.package}/bin/lambdabot
|
||||
'';
|
||||
serviceConfig.User = "lambdabot";
|
||||
serviceConfig = {
|
||||
User = "lambdabot";
|
||||
RuntimeDirectory = [ "lambdabot" ];
|
||||
};
|
||||
};
|
||||
|
||||
users.extraUsers.lambdabot = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user