Skip to content

Switch init system to systemd - #3

Merged
mxsrc merged 18 commits into
mainfrom
systemd
Mar 24, 2026
Merged

Switch init system to systemd#3
mxsrc merged 18 commits into
mainfrom
systemd

Conversation

@mxsrc

@mxsrc mxsrc commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

This switches the init system to systemd, giving us better control of the process management, inspection methods, and integrated log management.

@mxsrc
mxsrc force-pushed the systemd branch 7 times, most recently from b943436 to afe7718 Compare January 20, 2026 16:26
@mxsrc
mxsrc force-pushed the systemd branch 2 times, most recently from 5a5b274 to 0647f50 Compare February 2, 2026 07:22
@mxsrc
mxsrc force-pushed the systemd branch 4 times, most recently from 11dba8e to 7893ab0 Compare February 25, 2026 16:15
@mxsrc
mxsrc force-pushed the systemd branch 5 times, most recently from a126f9a to 484708b Compare March 5, 2026 07:29
@mxsrc
mxsrc marked this pull request as ready for review March 23, 2026 07:59

@noctarius noctarius left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great PR. Couple of small questions but this is amazing. Love that now, every process also gets its own user.

Comment thread prototype/boards/qemu-common/rootfs_overlay/etc/vector/vector.yaml
Comment thread prototype/boards/qemu-common/rootfs_overlay/etc/inittab Outdated

ExecStartPre=/bin/sh -c "if [ ! -s ${PGDATA}/PG_VERSION ]; then pg_ctl initdb --options=\"--username=vela --waldir=/var/lib/postgresql/wal/pg_wal\"; fi"
ExecStartPre=/usr/local/bin/postgres-pitr-setup.sh
ExecStart=/bin/sh -c "exec postgres -k %t/postgresql -c config_file=/vela/config/postgresql.conf -c hba_file=/vela/config/pg_hba.conf $(cat %t/postgresql/pitr-args)"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we wanted to to use /etc/postgresql.conf which includes /vela/config/postgresql.conf then the timescaledb-tune output and then a user-override file (like /vela/config/postgresql-user.conf). Should we already prepare that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That would be nice, I'd rather not include this here and delay further. The change would require controller-changes as well and has implications for migrating existing VMs.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fair, let's put this into an issue and link here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@mxsrc
mxsrc merged commit d0f4511 into main Mar 24, 2026
1 check failed
@mxsrc
mxsrc deleted the systemd branch March 24, 2026 07:47
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.

3 participants