blob: 73cad88669ae815d6d588abf0dc0cd7d385a7b9c [file] [log] [blame]
Davide Pesaventodf0bd342019-01-25 01:22:45 -05001# Copyright (c) 2015-2019, Arizona Board of Regents.
2#
3# This file is part of NDN repo-ng (Next generation of NDN repository).
4# See AUTHORS.md for complete list of repo-ng authors and contributors.
5#
6# repo-ng is free software: you can redistribute it and/or modify it under the terms
7# of the GNU General Public License as published by the Free Software Foundation,
8# either version 3 of the License, or (at your option) any later version.
9#
10# repo-ng is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12# PURPOSE. See the GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License along with
15# repo-ng, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
16#
17# Author: Eric Newberry <enewberry@email.arizona.edu>
18# Author: Davide Pesavento <davidepesa@gmail.com>
19
20[Unit]
21Description=NDN repo-ng
22BindsTo=nfd.service
23After=nfd.service
24
25[Service]
26Environment=HOME=%S/ndn/repo-ng
27ExecStart=@BINDIR@/ndn-repo-ng
28Restart=on-failure
29RestartPreventExitStatus=2
30User=ndn
31
32LockPersonality=yes
33MemoryDenyWriteExecute=yes
34NoNewPrivileges=yes
35PrivateDevices=yes
36PrivateTmp=yes
37PrivateUsers=yes
38ProtectControlGroups=yes
39ProtectHome=yes
40ProtectKernelModules=yes
41ProtectKernelTunables=yes
42ProtectSystem=full
43RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
44RestrictNamespaces=yes
45RestrictRealtime=yes
46StateDirectory=ndn/repo-ng
47SystemCallArchitectures=native
48SystemCallErrorNumber=EPERM
49SystemCallFilter=~@clock @cpu-emulation @debug @module @mount @obsolete @privileged @raw-io @reboot @setuid @swap
50
51[Install]
52WantedBy=multi-user.target
53WantedBy=nfd.service