Skip to content

add rc.d script for the nix-daemon#13717

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
Mic92:rc.d-script
Aug 8, 2025
Merged

add rc.d script for the nix-daemon#13717
Ericson2314 merged 1 commit intoNixOS:masterfrom
Mic92:rc.d-script

Conversation

@Mic92
Copy link
Member

@Mic92 Mic92 commented Aug 8, 2025

Motivation

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@Mic92 Mic92 requested a review from edolstra as a code owner August 8, 2025 06:59
echo "Starting ${name}."
# command_args is intentionally unquoted to allow multiple arguments
# shellcheck disable=SC2086
/usr/sbin/daemon -c -f -p "${pidfile}" "${command}" ${command_args}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This idiomatic code for freebsd, in future we may want to detect /usr/sbin/daemon or make it configurable for nixbsd? Actually haven't looked into their service abstraction, which I presume generates the whole file anyway?

@Mic92
Copy link
Member Author

Mic92 commented Aug 8, 2025

cc @0mp @wahjava

@Ericson2314
Copy link
Member

Ericson2314 commented Aug 8, 2025

If it was working for you, let's just merge it! Those two can review it better than me, but they can also propose changes after the fact.

@Ericson2314 Ericson2314 merged commit 8e35f3c into NixOS:master Aug 8, 2025
14 checks passed
@Mic92 Mic92 deleted the rc.d-script branch August 10, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants