Skip to content

Replace SysV init script with native systemd unit - #2

Open
Cybren wants to merge 1 commit into
masterfrom
systemd-unit
Open

Cybren wants to merge 1 commit into
masterfrom
systemd-unit

Conversation

@Cybren

@Cybren Cybren commented Nov 22, 2026

Copy link
Copy Markdown

Ubuntu 26.04 no longer ships the runlevel binary. Salt's service.enabled falls back to its SysV code path for services that only have an /etc/init.d script, calls runlevel, and crashes with "IndexError: list index out of range". The service itself still runs via systemd-sysv-generator, but SysV support is being phased out of systemd.

Ship gitlabnssd.service (running the daemon with --foreground) and drop the init script so the unit is managed natively by systemd.

Claude-Session: https://claude.ai/code/session_013aM1stVVggwNwW1ycgYb6C
Viel Freude mit dieser Pull Request wünschen Ben und Niklas :)

Ubuntu 26.04 no longer ships the `runlevel` binary. Salt's
service.enabled falls back to its SysV code path for services that only
have an /etc/init.d script, calls `runlevel`, and crashes with
"IndexError: list index out of range". The service itself still runs via
systemd-sysv-generator, but SysV support is being phased out of systemd.

Ship gitlabnssd.service (running the daemon with --foreground) and drop
the init script so the unit is managed natively by systemd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013aM1stVVggwNwW1ycgYb6C
@Cybren
Cybren requested a review from TheMrSheldon November 22, 2026 19:07
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