Skip to content

Ship systemd unit and maintainer scripts in .deb #135

Description

@ChrisonSimtian

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/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttarget/vNextTargets the next calendar-version

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions