dist: refactoring, ship systemd services for Debian, fix section of re6stnet manpage
[re6stnet.git] / daemon / re6stnet.service
1 [Unit]
2 Description=Resilient, Scalable, IPv6 Network application
3 ConditionPathExists=/etc/re6stnet/re6stnet.conf
4
5 [Service]
6 WorkingDirectory=/etc/re6stnet
7 # systemd plans to "introduce ExecCondition= in services" (cf its TODO file)
8 ExecStart=/bin/sh -c 'set re6stnet @re6stnet.conf; "$@" --test main_interface==\"lo\" || exec "$@"'
9 Restart=on-failure
10 StandardOutput=null
11
12 [Install]
13 WantedBy=multi-user.target