diff --git a/README.md b/README.md index e90474a..9b5dd95 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,5 @@ then it will listen on port 8383. Then you can make requests like: ## Install as a daemon ``` -cp opaque-proxy.service /etc/systemd/system -systemctl daemon-reload -systemctl enable opaque-proxy -systemctl start opaque-proxy +./install.sh ``` diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..5669d49 --- /dev/null +++ b/install.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +cp opaque-proxy.service /etc/systemd/system +systemctl daemon-reload +systemctl enable opaque-proxy +systemctl start opaque-proxy diff --git a/opaque-proxy.service b/opaque-proxy.service index b465ca1..2ee90e5 100644 --- a/opaque-proxy.service +++ b/opaque-proxy.service @@ -4,3 +4,6 @@ After=network.target [Service] ExecStart=opaque-proxy + +[Install] +WantedBy=multi-user.target