blob: 57661fd28da389bf097642c26127d35e61432c4c [file] [log] [blame]
Davide Pesavento42538852017-11-12 23:58:30 -05001# Copyright (c) 2015-2017, Regents of the University of California,
2# Arizona Board of Regents,
3# Colorado State University,
4# University Pierre & Marie Curie, Sorbonne University,
5# Washington University in St. Louis,
6# Beijing Institute of Technology,
7# The University of Memphis.
Eric Newberry187ade82015-05-13 01:22:51 -07008#
9# This file is part of NFD (Named Data Networking Forwarding Daemon).
10# See AUTHORS.md for complete list of NFD authors and contributors.
11#
12# NFD is free software: you can redistribute it and/or modify it under the terms
13# of the GNU General Public License as published by the Free Software Foundation,
14# either version 3 of the License, or (at your option) any later version.
15#
16# NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
17# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18# PURPOSE. See the GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License along with
21# NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
22#
23# Author: Eric Newberry <enewberry@email.arizona.edu>
Davide Pesavento42538852017-11-12 23:58:30 -050024# Author: Davide Pesavento <davide.pesavento@lip6.fr>
Eric Newberry187ade82015-05-13 01:22:51 -070025
26[Unit]
27Description=NDN Forwarding Daemon
Davide Pesavento42538852017-11-12 23:58:30 -050028Documentation=man:nfd(1) man:nfdc(1)
Eric Newberry187ade82015-05-13 01:22:51 -070029Wants=network-online.target
30After=network-online.target
31
32[Service]
Davide Pesavento774071c2018-11-15 21:33:23 -050033Type=notify
Eric Newberry187ade82015-05-13 01:22:51 -070034Environment=HOME=/usr/local/var/lib/ndn/nfd
35ExecStart=/usr/local/bin/nfd --config /usr/local/etc/ndn/nfd.conf
Davide Pesavento774071c2018-11-15 21:33:23 -050036ExecStartPost=/bin/sh -ec 'if [ -f /usr/local/etc/ndn/nfd-init.sh ]; then . /usr/local/etc/ndn/nfd-init.sh; fi'
Davide Pesavento42538852017-11-12 23:58:30 -050037ExecReload=/bin/kill -HUP $MAINPID
Eric Newberry187ade82015-05-13 01:22:51 -070038Restart=on-failure
Davide Pesavento42538852017-11-12 23:58:30 -050039RestartPreventExitStatus=2 4
Eric Newberry187ade82015-05-13 01:22:51 -070040PrivateTmp=yes
41PrivateDevices=yes
Davide Pesavento42538852017-11-12 23:58:30 -050042ProtectSystem=full
Eric Newberry187ade82015-05-13 01:22:51 -070043ProtectHome=yes
Davide Pesavento42538852017-11-12 23:58:30 -050044ProtectKernelTunables=yes
45ProtectKernelModules=yes
46ProtectControlGroups=yes
47SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
48SystemCallArchitectures=native
49MemoryDenyWriteExecute=yes
50RestrictRealtime=yes
Eric Newberry187ade82015-05-13 01:22:51 -070051
52[Install]
53WantedBy=multi-user.target