Eric Newberry | 9ab4a66 | 2015-05-28 11:36:41 -0700 | [diff] [blame] | 1 | # Copyright (c) 2015, 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. |
| 8 | # |
| 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> |
| 24 | |
| 25 | [Unit] |
| 26 | Description=NDN Autoconfig Server |
Alexander Afanasyev | 3a90289 | 2015-12-30 22:42:20 +0000 | [diff] [blame] | 27 | Documentation=man:nfd-autoconfig-server |
Eric Newberry | 9ab4a66 | 2015-05-28 11:36:41 -0700 | [diff] [blame] | 28 | Requires=nfd.service |
| 29 | After=nfd.service |
| 30 | |
| 31 | [Service] |
| 32 | Environment=HOME=/var/lib/ndn/ndn-autoconfig-server |
| 33 | EnvironmentFile=-/etc/default/ndn-autoconfig-server |
| 34 | User=ndn |
| 35 | Group=ndn |
| 36 | ExecStart=/bin/sh -ec 'if [ "$FACE_URI" != "" ]; then exec /usr/bin/ndn-autoconfig-server $ROUTABLE_PREFIXES $FACE_URI; fi' |
| 37 | Restart=on-failure |
| 38 | ProtectSystem=full |
| 39 | PrivateTmp=yes |
| 40 | PrivateDevices=yes |
| 41 | ProtectHome=yes |
| 42 | |
| 43 | [Install] |
| 44 | WantedBy=multi-user.target |