Skip to content

Commit

Permalink
Add 'After=network-online.target' to the service files
Browse files Browse the repository at this point in the history
We were missing this "After=network-online.target" line,
which is on our production servers and waits for the network
to be operational before starting the service.
  • Loading branch information
justinclift committed May 22, 2024
1 parent c8d4bad commit 2c2e140
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion other/systemd/dbhub-api.service
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[Unit]
Description=DBHub.io API daemon
Documentation=https://github.com/sqlitebrowser/dbhub.io
Requires=network-online.target
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/usr/local/bin/api

[Service]
Expand Down
2 changes: 1 addition & 1 deletion other/systemd/dbhub-db4s.service
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[Unit]
Description=DBHub.io DB4S connector
Documentation=https://github.com/sqlitebrowser/dbhub.io
Requires=network-online.target
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/usr/local/bin/db4s

[Service]
Expand Down
2 changes: 1 addition & 1 deletion other/systemd/dbhub-live.service
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[Unit]
Description=DBHub.io Live database daemon
Documentation=https://github.com/sqlitebrowser/dbhub.io
Requires=network-online.target
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/usr/local/bin/live

[Service]
Expand Down
2 changes: 1 addition & 1 deletion other/systemd/dbhub-webui.service
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[Unit]
Description=DBHub.io Website User Interface
Documentation=https://github.com/sqlitebrowser/dbhub.io
Requires=network-online.target
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/usr/local/bin/webui

[Service]
Expand Down

0 comments on commit 2c2e140

Please sign in to comment.