re6stnet.service 501 Bytes
Newer Older
1 2 3 4 5 6
[Unit]
Description=Resilient, Scalable, IPv6 Network application
ConditionPathExists=/etc/re6stnet/re6stnet.conf

[Service]
WorkingDirectory=/etc/re6stnet
7
# systemd plans to "introduce ExecCondition= in services" (cf its TODO file)
8
ExecStart=/bin/sh -c 'set re6stnet @re6stnet.conf; GEOIP2_MMDB=/etc/re6stnet/GeoLite2-Country.mmdb; [ -r $GEOIP2_MMDB ] && export GEOIP2_MMDB; "$@" --test main_interface==\"lo\" || exec "$@"'
9
Restart=on-failure
10
StandardOutput=null
11 12 13

[Install]
WantedBy=multi-user.target