From fe5f795fe9d81a3fe50b3bd0d4fe0533cc4edc86 Mon Sep 17 00:00:00 2001 From: Marcel Enguehard Date: Fri, 1 Sep 2017 14:57:32 +0200 Subject: Added netmon conf file for setup Change-Id: Ib99f99fd89ce633924462639a886c4a9c97995e0 Signed-off-by: Marcel Enguehard --- etc/netmon.conf | 12 ++++++++++++ etc/netmon.service | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 etc/netmon.conf create mode 100644 etc/netmon.service diff --git a/etc/netmon.conf b/etc/netmon.conf new file mode 100644 index 00000000..2518a7f4 --- /dev/null +++ b/etc/netmon.conf @@ -0,0 +1,12 @@ +description "Manifold Map" +author "Jordan Augé " + +start on started nfd +stop on stopping nfd + +respawn +respawn limit unlimited + +script + exec /usr/bin/netmon +end script diff --git a/etc/netmon.service b/etc/netmon.service new file mode 100644 index 00000000..67caee9a --- /dev/null +++ b/etc/netmon.service @@ -0,0 +1,37 @@ +# Copyright (c) 2015, Cisco Systems +# +# This file is part of the NDN netmon. +# See AUTHORS.md for complete list of authors and contributors. +# +# This program is free software: you can redistribute it and/or modify it under the terms +# of the GNU General Public License as published by the Free Software Foundation, +# either version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program, e.g., in COPYING.md file. If not, see . +# +# Author: Jordan Augé + +[Unit] +Description=Netmon +# Documentation=man:netmon +# Requires=nfd.service +# After=nfd.service + +[Service] +#Environment=HOME=/var/lib/ndn/repo-ng +#User=ndn +#Group=ndn +ExecStart=/usr/bin/netmon +Restart=on-failure +#ProtectSystem=full +#PrivateTmp=yes +#PrivateDevices=yes +#ProtectHome=yes + +[Install] +WantedBy=multi-user.target -- cgit 1.2.3-korg