Eric Newberry | 9e3822a | 2015-06-09 14:07:02 -0700 | [diff] [blame] | 1 | # Copyright (c) 2015, Arizona Board of Regents. |
| 2 | # |
| 3 | # This file is part of NDNS (Named Data Networking Domain Name Service). |
| 4 | # See AUTHORS.md for complete list of NDNS authors and contributors. |
| 5 | # |
| 6 | # NDNS 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 | # NDNS 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 | # NDNS, 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=Domain Name Service for Named Data Networking |
| 21 | Documentation=man:ndns-daemon |
| 22 | Requires=nfd.service |
| 23 | After=nfd.service |
| 24 | |
| 25 | [Service] |
| 26 | Environment=HOME=/var/lib/ndns |
| 27 | EnvironmentFile=-/etc/default/ndns |
| 28 | User=ndns |
| 29 | Group=ndns |
| 30 | ExecStart=/usr/bin/ndns-daemon -c /etc/ndns/ndns.conf |
| 31 | Restart=on-failure |
| 32 | ProtectSystem=full |
| 33 | PrivateTmp=yes |
| 34 | PrivateDevices=yes |
| 35 | ProtectHome=yes |
| 36 | |
| 37 | [Install] |
| 38 | WantedBy=multi-user.target |