Commit 5328532 1 parent ce3a41a commit 5328532 Copy full SHA for 5328532
File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ # How to install:
2
+ #
3
+ # sudo ln -sr ./dummy-ok-server.service /etc/systemd/system/
4
+ # sudo systemctl enable --now dummy-ok-server
5
+ #
6
+ # # check
7
+ # systemctl status dummy-ok-server
8
+ # # tail logs
9
+ # journalctl -fu dummy-ok-server
10
+
11
+ [Unit]
12
+ Description =Dummy HTTP server which always returns empty 200 response to all GET and POST requests
13
+ After =network.target
14
+
15
+ [Service]
16
+ ExecStart =/home/admin/dummy-ok-server/target/release/dummy-ok-server
17
+ User =www-data
18
+ Group =www-data
19
+ AmbientCapabilities =CAP_NET_BIND_SERVICE
20
+ Restart =always
21
+
22
+ [Install]
23
+ WantedBy =multi-user.target
24
+
25
+ # Referecens:
26
+ # https://www.freedesktop.org/software/systemd/man/systemd.unit.html
27
+ # https://www.freedesktop.org/software/systemd/man/systemd.service.html
You can’t perform that action at this time.
0 commit comments