service file for nando client
This commit is contained in:
10
etc/nando.service
Normal file
10
etc/nando.service
Normal 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
|
||||
@@ -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
|
||||
chmod a+rx /usr/local/bin/"$f"
|
||||
done
|
||||
|
||||
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
|
||||
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
|
||||
"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user