Skip to content

added systemd example to README#2

Merged
markmnl merged 4 commits intomainfrom
systemd
Apr 17, 2026
Merged

added systemd example to README#2
markmnl merged 4 commits intomainfrom
systemd

Conversation

@markmnl
Copy link
Copy Markdown
Owner

@markmnl markmnl commented Apr 17, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a systemd service example to the README to document how to run fmsgid at startup on Linux hosts.

Changes:

  • Document an example /etc/systemd/system/fmsgid.service unit for running fmsgid under a dedicated user.
  • Add an example environment file (/opt/fmsgid/env) and basic systemctl commands to enable/start the service.

Comment thread README.md
Comment on lines +114 to +117
EnvironmentFile=/opt/fmsgid/env

ExecStart=/opt/fmsgid/fmsgid
WorkingDirectory=/opt/fmsgid
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

ExecStart=/opt/fmsgid/fmsgid 0.0.0.0 suggests the binary accepts a bind-address argument, but src/fmsgid.go doesn't parse CLI args and Gin’s Run(":"+port) already binds on all interfaces by default. Consider removing 0.0.0.0 (or documenting the actual supported way to configure the bind address if one exists).

Copilot uses AI. Check for mistakes.
Comment thread README.md Outdated
Comment on lines +91 to +93
An example systemd service to run fmsgid as a service on startup

ASSUMES:
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

Minor docs polish: this sentence is missing ending punctuation, and the following ASSUMES: line has a trailing space. Tightening these up will improve readability/consistency with the rest of the README.

Suggested change
An example systemd service to run fmsgid as a service on startup
ASSUMES:
An example systemd service to run fmsgid as a service on startup.
ASSUMES:

Copilot uses AI. Check for mistakes.
Comment thread README.md Outdated
* Text file `/opt/fmsgid/env` exists containing environment variables (example below)
* User `fmsg` has been created and has
- read and execute permissions to `/opt/fmsgid/`, e.g. with `chown -R fmsg:fmsg /opt/fmsgid` after `mkdir /opt/fmsgid`
- write permissions to FMSG_DATA_DIR
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

The prerequisites list mentions FMSG_DATA_DIR, but this repo/documentation appears to only use FMSGID_PORT and FMSGID_CSV_FILE (no FMSG_DATA_DIR env var). This is likely a stale/incorrect variable name—please update this bullet to reference the actual path(s) that need write access (e.g., /opt/fmsgid and/or the FMSGID_CSV_FILE location).

Suggested change
- write permissions to FMSG_DATA_DIR
- write permissions to `/opt/fmsgid` and to the path specified by `FMSGID_CSV_FILE` if it is outside `/opt/fmsgid`

Copilot uses AI. Check for mistakes.
@markmnl markmnl merged commit efbaf86 into main Apr 17, 2026
1 check passed
@markmnl markmnl deleted the systemd branch April 17, 2026 14:40
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