Skip to content

Commit

Permalink
- Fixes ansible installation
Browse files Browse the repository at this point in the history
  • Loading branch information
glushchenko committed Aug 1, 2018
1 parent 5d899fb commit 2d35cd4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 4 additions & 7 deletions playbooks/templates/2ip-speed.service
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
[Unit]
Description=2ip-speed
After=network.target 2ip-speed.socket
Requires=2ip-speed.socket
Description=2ip speed
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/speedtest --log=false --domain={{ node_host }}
NonBlocking=true
ExecStart=/usr/local/bin/speedtest --systemd=true --log=false --domain=$CURRENT_HOSTNAME --port=$PORT
ExecReload=/bin/kill -HUP $MAINPID
User=nobody
Restart=always
RestartSec=3
LimitNOFILE=8192

[Install]
Expand Down
6 changes: 5 additions & 1 deletion playbooks/templates/2ip-speed.socket
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[Unit]
Description=2ip socket
PartOf=2ip-speed.service

[Socket]
ListenStream=80
NoDelay=true
NoDelay=true

[Install]
WantedBy=sockets.target

0 comments on commit 2d35cd4

Please sign in to comment.