feat(systemd): add ttheart.service unit file #189
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/ttheart!189
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/create-systemd-service"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Create
ttheart.servicesystemd unit file:Type=simplefor foreground processUser/Group=ttheart:ttheartfor privilege separation (#87)WorkingDirectory=/etc/ttheartfor config discovery (#86)ExecStart=/usr/local/bin/ttheart -config /etc/ttheart/config.yaml(#85)Restart=on-failurewithRestartSec=5(#88)EnvironmentFile=-/etc/ttheart/environmentfor optional env vars (#89)network.targetWhy
Production deployment target. Operators can install the binary, drop in this unit file, and manage via
systemctl.Testing
Breaking Changes
None.
Notes
-means systemd won't fail if missing)/etc/ttheart/directory structure from #95 (config file discovery)Closes #90
Closes #85
Closes #86
Closes #87
Closes #88
Closes #89
Review
Clean systemd unit file. Standard production service configuration.
Verified: Types=simple, User/Group separation, WorkingDirectory, Restart=on-failure with RestartSec=5, optional EnvironmentFile with
-prefix, network.target dependency, multi-user.target install target.Note:
-configflag doesn't exist in current binary — it will be added in the config discovery PR (#95). TheWorkingDirectory=/etc/ttheartprovides a functional fallback today (binary falls back toconfig.yamlin CWD).No blocking issues.
APPROVED