Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Add ability to run "one shot" commands #117

@soenkeliebau

Description

@soenkeliebau

The idea here is to support running preparatory or maintenance tasks that need to execute as a command that finishes after a while.
Ideally this should also be done via systemd as some of these commands can run for quite a while (days sometimes) and we do not want them aborted, when the agent crashes or is restarted.

This could be done via the following settings:

Type=oneshot
RemainAfterExit=true

An example can be seen here.

I am unsure if RemainAfterExit is necessary, but this might be required to check the exit code of the command afterwards.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions