Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

gdp / adm / gdplogd.service.template @ master

History | View | Annotate | Download (582 Bytes)

1 90cd4faa Eric Allman
[Unit]
2
Description=GDP log daemon
3 2840d5f4 Eric Allman
After=gdp-router-click2.service
4 55948197 Eric Allman
Requires=network-online.target
5
After=network-online.target
6 90cd4faa Eric Allman
7
[Service]
8 b3a7ae7b Eric Allman
Type=notify
9
NotifyAccess=all
10 90cd4faa Eric Allman
Environment=GDP_ROOT=@GDP_ROOT@
11 d17c1801 Eric Allman
Environment=GDP_VER=@GDP_VER@
12 90cd4faa Eric Allman
User=@GDP_USER@
13
14
# give router time to start up
15 55948197 Eric Allman
#ExecStartPre=/bin/sleep 20
16
ExecStartPre=/bin/sleep 2
17 1220cf5e Eric Allman
ExecStart=/bin/sh @GDP_ROOT@/sbin/gdplogd@GDP_VER@-wrapper.sh
18 90cd4faa Eric Allman
Restart=always
19
20
StandardOutput=syslog
21
StandardError=inherit
22
SyslogIdentifier=gdplogd
23
SyslogFacility=@GDP_SYSLOG_FACILITY@
24
SyslogLevel=@GDP_SYSLOG_LEVEL@
25
26
[Install]
27
WantedBy=multi-user.target