aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/netmon.conf12
-rw-r--r--etc/netmon.service37
2 files changed, 49 insertions, 0 deletions
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é <jordan.auge@cisco.com>"
+
+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 <http://www.gnu.org/licenses/>.
+#
+# Author: Jordan Augé <jordan.auge@cisco.com>
+
+[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