Creating a systemd unit for gcr
I am trying to create a systemd unit file to run gcr. gcr runs in the foreground and polls an http server at a regular interval reporting activity to stdout. I created a unit file at /etc/systemd/system/gitlab-ci-runner with these contents.
Code:
[Unit] Code:
Loaded: loaded (/etc/systemd/system/gitlab-ci-runner.service; static) Code:
gcr info [client] checking for builds... |
If you look at the .service files in /usr/lib/systemd/system/ I think systemd expects either one shot applications or daemons or at least applications that can be told they should run headless, implying they close stdout/stderr themselves?..
|
All times are GMT -5. The time now is 10:30 AM. |