New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] NixOS: Add networking.rini module #39691
Conversation
path = [ cfg.package ]; | ||
preStart = '' | ||
mkdir -p /var/log/irati | ||
''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can do serviceConfig.LogsDirectory = "irati";
instead of manually creating the directory.
description = "RINA IPC Manager Daemon"; | ||
|
||
before = [ "network.target" ]; | ||
wants = [ "network.target" ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need this - multi-user will bring in network.target so you just need to position yourself before it (like you do in the earlier line).
wantedBy = [ "multi-user.target" ]; | ||
# stopIfChanged = false; | ||
|
||
path = [ cfg.package ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really needed when you reference the full path in ExecStart?
difConfigurations = map mkDifConfig cfg.difs; | ||
ipcProcessesToCreate = cfg.ipcs; | ||
localConfiguration = { | ||
consoleSocket = "/var/run/ipcm-console.sock"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/var/run
is deprecated. Should just be /run
.
Thanks @peterhoeg - very helpful! I will fix those things shortly. And I also want to add a couple more test scenarios and fix the bug in existing test. |
+1 |
Are there any updates on this pull request, please? |
Thank you for your contributions.
|
I marked this as stale due to inactivity. → More info |
Motivation for this change
RINA is a new and better Internetwork architecture. IRATI is an implementation of RINA for Linux.
Things done
build-use-sandbox
innix.conf
on non-NixOS)./result/bin/
)