blob: 063e4a790cd6590597b8f26166fb34d30af756e8 [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]
33Environment=HOME=/usr/local/var/lib/ndn/nfd
34ExecStart=/usr/local/bin/nfd --config /usr/local/etc/ndn/nfd.conf
35ExecStartPost=/bin/sh -ec 'sleep 2; 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 -050036ExecReload=/bin/kill -HUP $MAINPID
Eric Newberry187ade82015-05-13 01:22:51 -070037Restart=on-failure
Davide Pesavento42538852017-11-12 23:58:30 -050038RestartPreventExitStatus=2 4
Eric Newberry187ade82015-05-13 01:22:51 -070039PrivateTmp=yes
40PrivateDevices=yes
Davide Pesavento42538852017-11-12 23:58:30 -050041ProtectSystem=full
Eric Newberry187ade82015-05-13 01:22:51 -070042ProtectHome=yes
Davide Pesavento42538852017-11-12 23:58:30 -050043ProtectKernelTunables=yes
44ProtectKernelModules=yes
45ProtectControlGroups=yes
46SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
47SystemCallArchitectures=native
48MemoryDenyWriteExecute=yes
49RestrictRealtime=yes
Eric Newberry187ade82015-05-13 01:22:51 -070050
51[Install]
52WantedBy=multi-user.target