Skip to content

Commit

Permalink
Add support for sysconfig (environment) files
Browse files Browse the repository at this point in the history
  • Loading branch information
matyasselmeci committed Jan 31, 2024
1 parent 146571b commit a7fc7c1
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions systemd/osdf-cache.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Description = Pelican service osdf-cache
After = network.target nss-lookup.target

[Service]
EnvironmentFile = -/etc/sysconfig/osdf-cache
ExecStart = /usr/bin/osdf --config /etc/pelican/osdf-cache.yaml cache serve
Restart = on-failure
RestartSec = 20s
Expand Down
1 change: 1 addition & 0 deletions systemd/osdf-director.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Description = Pelican service osdf-director
After = network.target nss-lookup.target

[Service]
EnvironmentFile = -/etc/sysconfig/osdf-director
ExecStart = /usr/bin/osdf --config /etc/pelican/osdf-director.yaml director serve
Restart = on-failure
RestartSec = 20s
Expand Down
1 change: 1 addition & 0 deletions systemd/osdf-origin.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Description = Pelican service osdf-origin
After = network.target nss-lookup.target

[Service]
EnvironmentFile = -/etc/sysconfig/osdf-origin
ExecStart = /usr/bin/osdf --config /etc/pelican/osdf-origin.yaml origin serve
Restart = on-failure
RestartSec = 20s
Expand Down
1 change: 1 addition & 0 deletions systemd/osdf-registry.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Description = Pelican service osdf-registry
After = network.target nss-lookup.target

[Service]
EnvironmentFile = -/etc/sysconfig/osdf-registry
ExecStart = /usr/bin/osdf --config /etc/pelican/osdf-registry.yaml registry serve
Restart = on-failure
RestartSec = 20s
Expand Down
1 change: 1 addition & 0 deletions systemd/pelican-cache.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Description = Pelican service pelican-cache
After = network.target nss-lookup.target

[Service]
EnvironmentFile = -/etc/sysconfig/pelican-cache
ExecStart = /usr/bin/pelican --config /etc/pelican/pelican-cache.yaml cache serve
Restart = on-failure
RestartSec = 20s
Expand Down
1 change: 1 addition & 0 deletions systemd/pelican-director.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Description = Pelican service pelican-director
After = network.target nss-lookup.target

[Service]
EnvironmentFile = -/etc/sysconfig/pelican-director
ExecStart = /usr/bin/pelican --config /etc/pelican/pelican-director.yaml director serve
Restart = on-failure
RestartSec = 20s
Expand Down
1 change: 1 addition & 0 deletions systemd/pelican-origin.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Description = Pelican service pelican-origin
After = network.target nss-lookup.target

[Service]
EnvironmentFile = -/etc/sysconfig/pelican-origin
ExecStart = /usr/bin/pelican --config /etc/pelican/pelican-origin.yaml origin serve
Restart = on-failure
RestartSec = 20s
Expand Down
1 change: 1 addition & 0 deletions systemd/pelican-registry.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Description = Pelican service pelican-registry
After = network.target nss-lookup.target

[Service]
EnvironmentFile = -/etc/sysconfig/pelican-registry
ExecStart = /usr/bin/pelican --config /etc/pelican/pelican-registry.yaml registry serve
Restart = on-failure
RestartSec = 20s
Expand Down

0 comments on commit a7fc7c1

Please sign in to comment.