service file for nando client

This commit is contained in:
ville rantanen
2018-08-13 16:23:28 +03:00
parent c63e4268fb
commit 86fddcdee1
2 changed files with 19 additions and 0 deletions

10
etc/nando.service Normal file
View File

@@ -0,0 +1,10 @@
[Unit]
Description = Nando alive send keepalive messages
After = network.target
[Service]
ExecStart = /usr/local/bin/nando -i 600 >/dev/null 2>&1
Restart = on-failure
[Install]
WantedBy = multi-user.target

View File

@@ -13,6 +13,15 @@ for f in nando nandod nando-desc nando-stats; do
curl -s https://bitbucket.org/MoonQ/nando/raw/tip/$f > /usr/local/bin/$f curl -s https://bitbucket.org/MoonQ/nando/raw/tip/$f > /usr/local/bin/$f
chmod a+rx /usr/local/bin/"$f" chmod a+rx /usr/local/bin/"$f"
done done
echo "Copy https://bitbucket.org/MoonQ/nando/raw/tip/etc/nandorc.example to /etc/nandorc and edit it!" echo "Copy https://bitbucket.org/MoonQ/nando/raw/tip/etc/nandorc.example to /etc/nandorc and edit it!"
curl -s https://bitbucket.org/MoonQ/nando/raw/tip/etc/nandorc.example curl -s https://bitbucket.org/MoonQ/nando/raw/tip/etc/nandorc.example
echo
echo
echo "Add systemd service to /etc/systemd/system/nando.service
systemctld enable nando
https://bitbucket.org/MoonQ/nando/raw/tip/etc/nando.service
"