Eric Newberry | 01762d4 | 2015-06-09 14:14:28 -0700 | [diff] [blame^] | 1 | # Copyright (c) 2015, 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 | |
| 19 | [Unit] |
| 20 | Description=New generation of NDN repo |
| 21 | Documentation=man:ndn-repo-ng |
| 22 | Requires=nfd.service |
| 23 | After=nfd.service |
| 24 | |
| 25 | [Service] |
| 26 | Environment=HOME=/var/lib/ndn/repo-ng |
| 27 | User=ndn |
| 28 | Group=ndn |
| 29 | ExecStart=/usr/bin/ndn-repo-ng -c /etc/ndn/repo-ng.conf |
| 30 | Restart=on-failure |
| 31 | ProtectSystem=full |
| 32 | PrivateTmp=yes |
| 33 | PrivateDevices=yes |
| 34 | ProtectHome=yes |
| 35 | |
| 36 | [Install] |
| 37 | WantedBy=multi-user.target |