Skip to content

Service does not automatically restart if unit file has changed on non-comin deployΒ #92

@TimQuelch

Description

@TimQuelch

If I'm reading this correctly, comin handles restarts by checking if the unit file has changed after a deploy.

Because of this the module systemd unit is configured to not restart through the normal nixos-rebuild switch.However this means if nixos switched outside of comin with a normal nixos-rebuild, then the service is not restarted and the config is not updated

I noticed this when I misconfigured a remote, then manually deployed nixos. Because the update to the config file occured outside comin the service did not restart and because the bad config was still being used comin missed future pushes.

Maybe a solution is that comin could regularly check if the unit file has changed and restart itself if it has?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions