Test out running at startup

This commit is contained in:
Kelvin Ly 2018-09-27 21:55:49 -04:00
parent 8ca27d3df2
commit b9d3043407
2 changed files with 14 additions and 0 deletions

View File

@ -11,6 +11,7 @@ echo "export PATH=$PATH:/usr/lib/go-1.10/bin" >> ~/.bashrc
echo "export GOPATH=~/go" >> ~/.bashrc
sudo cp rules.v4 /etc/iptables/rules.v4
sudo cp kelvinly-server.service /etc/systemd/system
source ~/.bashrc
go get -u gopkg.in/russross/blackfriday.v2

13
kelvinly-server.service Normal file
View File

@ -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