Test out running at startup
This commit is contained in:
parent
8ca27d3df2
commit
b9d3043407
|
@ -11,6 +11,7 @@ echo "export PATH=$PATH:/usr/lib/go-1.10/bin" >> ~/.bashrc
|
||||||
echo "export GOPATH=~/go" >> ~/.bashrc
|
echo "export GOPATH=~/go" >> ~/.bashrc
|
||||||
|
|
||||||
sudo cp rules.v4 /etc/iptables/rules.v4
|
sudo cp rules.v4 /etc/iptables/rules.v4
|
||||||
|
sudo cp kelvinly-server.service /etc/systemd/system
|
||||||
|
|
||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
go get -u gopkg.in/russross/blackfriday.v2
|
go get -u gopkg.in/russross/blackfriday.v2
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
[Unit]
|
||||||
|
Description=My main HTTP server
|
||||||
|
After=network.target syslog.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/home/kelvin/kelvinly-server/kelvinly-server
|
||||||
|
StandardOutput=syslog
|
||||||
|
StandardError=syslog
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue