Fallout-build / Fallout-build/Fallout

Ship systemd unit and maintainer scripts in .deb

Open
#135 0 comments 0 reactions 0 assignees View on GitHub
enhancement target/vNext
Dominant language
C#
Stars
154
Forks
19
Avg merge
1d 22h
Merged PRs (30d)
15

Description

Parent: #123

The `.deb` (__L1__) installs a systemd service unit and uses Debian maintainer scripts to register it without leaving the operator to copy files around.

## Definition of done

- Unit installed at `/lib/systemd/system/fallout-agent.service` (system-level, not user).
- Unit `Type=simple` (or `notify` if the agent supports `sd_notify` — decide during implementation), `Restart=on-failure`, `RestartSec=10s`.
- Runs as a dedicated `fallout-agent` system user (created in `postinst` via `adduser --system`).
- `postinst` runs `systemctl daemon-reload` and `systemctl enable fallout-agent` (does NOT start — operator starts after config).
- `prerm` runs `systemctl stop fallout-agent` and `systemctl disable fallout-agent`.
- `postrm` purges `/etc/fallout-agent/` only on `purge`, not on `remove`.
- Reinstall over an existing install does NOT double-enable or wipe `/etc/fallout-agent/`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.