This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +65
-18
lines changed Expand file tree Collapse file tree 4 files changed +65
-18
lines changed Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description =DBHub.io API daemon
3
+ Documentation =https://github.com/sqlitebrowser/dbhub.io
4
+ Requires =network-online.target
5
+ Wants =network-online.target
6
+ AssertFileIsExecutable =/usr/local/bin/api
7
+
8
+ [Service]
9
+ Environment ="LD_LIBRARY_PATH=/home/dbhub/git_repos/dbhub.io/local/lib"
10
+ ExecStart =/usr/local/bin/api
11
+ WorkingDirectory =/home/dbhub/git_repos/dbhub.io
12
+ User =dbhub
13
+ Group =dbhub
14
+ PermissionsStartOnly =true
15
+ NonBlocking =true
16
+ SuccessExitStatus =0
17
+ StandardOutput =journal
18
+ StandardError =inherit
19
+ Restart =always
20
+ AmbientCapabilities =CAP_NET_BIND_SERVICE
21
+ NoNewPrivileges =true
22
+
23
+ # Specifies the maximum file descriptor number that can be opened by this process
24
+ LimitNOFILE =65536
25
+
26
+ [Install]
27
+ WantedBy =multi-user.target
Original file line number Diff line number Diff line change 1
1
[Unit]
2
2
Description =DBHub.io DB4S connector
3
3
Documentation =https://github.com/sqlitebrowser/dbhub.io
4
- Requires =postgresql-10.service
5
- Requires =memcached.service
4
+ Requires =network-online.target
6
5
Wants =network-online.target
7
- After =postgresql-10.service
8
6
AssertFileIsExecutable =/usr/local/bin/db4s
9
7
10
8
[Service]
9
+ Environment ="LD_LIBRARY_PATH=/home/dbhub/git_repos/dbhub.io/local/lib"
11
10
ExecStart =/usr/local/bin/db4s
12
- WorkingDirectory =/home/dbhub/go/src/github.com/sqlitebrowser /dbhub.io
11
+ WorkingDirectory =/home/dbhub/git_repos /dbhub.io
13
12
User =dbhub
14
13
Group =dbhub
15
14
PermissionsStartOnly =true
16
15
NonBlocking =true
17
16
SuccessExitStatus =0
18
17
StandardOutput =journal
19
18
StandardError =inherit
20
-
21
- # Let systemd restart this service only if it has ended with the clean exit code or signal.
22
- Restart =on-success
19
+ Restart =always
20
+ AmbientCapabilities =CAP_NET_BIND_SERVICE
21
+ NoNewPrivileges =true
23
22
24
23
# Specifies the maximum file descriptor number that can be opened by this process
25
24
LimitNOFILE =65536
Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description =DBHub.io Live database daemon
3
+ Documentation =https://github.com/sqlitebrowser/dbhub.io
4
+ Requires =network-online.target
5
+ Wants =network-online.target
6
+ AssertFileIsExecutable =/usr/local/bin/live
7
+
8
+ [Service]
9
+ Environment ="LD_LIBRARY_PATH=/home/dbhub/git_repos/dbhub.io/local/lib"
10
+ ExecStart =/usr/local/bin/live
11
+ WorkingDirectory =/home/dbhub/git_repos/dbhub.io
12
+ User =dbhub
13
+ Group =dbhub
14
+ PermissionsStartOnly =true
15
+ NonBlocking =true
16
+ SuccessExitStatus =0
17
+ StandardOutput =journal
18
+ StandardError =inherit
19
+ Restart =always
20
+ AmbientCapabilities =CAP_NET_BIND_SERVICE
21
+ NoNewPrivileges =true
22
+
23
+ # Specifies the maximum file descriptor number that can be opened by this process
24
+ LimitNOFILE =65536
25
+
26
+ [Install]
27
+ WantedBy =multi-user.target
Original file line number Diff line number Diff line change 1
1
[Unit]
2
2
Description =DBHub.io Website User Interface
3
3
Documentation =https://github.com/sqlitebrowser/dbhub.io
4
- Requires =postgresql-10.service
5
- Requires =memcached.service
6
- Requires =minio.service
4
+ Requires =network-online.target
7
5
Wants =network-online.target
8
- After =postgresql-10.service
9
- After =memcached.service
10
- After =minio.service
11
6
AssertFileIsExecutable =/usr/local/bin/webui
12
7
13
8
[Service]
9
+ Environment ="LD_LIBRARY_PATH=/home/dbhub/git_repos/dbhub.io/local/lib"
14
10
ExecStart =/usr/local/bin/webui
15
- WorkingDirectory =/home/dbhub/go/src/github.com/sqlitebrowser /dbhub.io
11
+ WorkingDirectory =/home/dbhub/git_repos /dbhub.io
16
12
User =dbhub
17
13
Group =dbhub
18
14
PermissionsStartOnly =true
19
15
NonBlocking =true
16
+ SuccessExitStatus =0
20
17
StandardOutput =journal
21
18
StandardError =inherit
22
- SuccessExitStatus =0
19
+ Restart =always
23
20
AmbientCapabilities =CAP_NET_BIND_SERVICE
24
21
NoNewPrivileges =true
25
22
26
- # Let systemd restart this service only if it has ended with the clean exit code or signal.
27
- Restart =on-success
28
-
29
23
# Specifies the maximum file descriptor number that can be opened by this process
30
24
LimitNOFILE =65536
31
25
You can’t perform that action at this time.
0 commit comments