-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the systemd service unit files
This updates the existing webUI and DB4S end point unit files, and also adds the missing unit files for the live daemon and api services.
- Loading branch information
1 parent
8e54744
commit 6ea8b3b
Showing
4 changed files
with
65 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[Unit] | ||
Description=DBHub.io API daemon | ||
Documentation=https://github.com/sqlitebrowser/dbhub.io | ||
Requires=network-online.target | ||
Wants=network-online.target | ||
AssertFileIsExecutable=/usr/local/bin/api | ||
|
||
[Service] | ||
Environment="LD_LIBRARY_PATH=/home/dbhub/git_repos/dbhub.io/local/lib" | ||
ExecStart=/usr/local/bin/api | ||
WorkingDirectory=/home/dbhub/git_repos/dbhub.io | ||
User=dbhub | ||
Group=dbhub | ||
PermissionsStartOnly=true | ||
NonBlocking=true | ||
SuccessExitStatus=0 | ||
StandardOutput=journal | ||
StandardError=inherit | ||
Restart=always | ||
AmbientCapabilities=CAP_NET_BIND_SERVICE | ||
NoNewPrivileges=true | ||
|
||
# Specifies the maximum file descriptor number that can be opened by this process | ||
LimitNOFILE=65536 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[Unit] | ||
Description=DBHub.io Live database daemon | ||
Documentation=https://github.com/sqlitebrowser/dbhub.io | ||
Requires=network-online.target | ||
Wants=network-online.target | ||
AssertFileIsExecutable=/usr/local/bin/live | ||
|
||
[Service] | ||
Environment="LD_LIBRARY_PATH=/home/dbhub/git_repos/dbhub.io/local/lib" | ||
ExecStart=/usr/local/bin/live | ||
WorkingDirectory=/home/dbhub/git_repos/dbhub.io | ||
User=dbhub | ||
Group=dbhub | ||
PermissionsStartOnly=true | ||
NonBlocking=true | ||
SuccessExitStatus=0 | ||
StandardOutput=journal | ||
StandardError=inherit | ||
Restart=always | ||
AmbientCapabilities=CAP_NET_BIND_SERVICE | ||
NoNewPrivileges=true | ||
|
||
# Specifies the maximum file descriptor number that can be opened by this process | ||
LimitNOFILE=65536 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters