xref: /unit/pkg/rpm/rpmbuild/SOURCES/unit-debug.service (revision 2027:04ae78e6813d)
1*2027Sdefan@nginx.com# Modifying this file in-place is not recommended, because changes
2*2027Sdefan@nginx.com# will be overwritten during package upgrades.  To customize the
3*2027Sdefan@nginx.com# behaviour, run "systemctl edit unit-debug" to create an override unit.
4*2027Sdefan@nginx.com
5*2027Sdefan@nginx.com# For example, to change options given to the unitd binary at startup,
6*2027Sdefan@nginx.com# create an override unit (as is done by systemctl edit) and enter
7*2027Sdefan@nginx.com# the following:
8*2027Sdefan@nginx.com
9*2027Sdefan@nginx.com#       [Service]
10*2027Sdefan@nginx.com#       Environment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /var/run/unit/unit.pid"
11*2027Sdefan@nginx.com
12*2027Sdefan@nginx.com[Unit]
13*2027Sdefan@nginx.comDescription=NGINX Unit
14*2027Sdefan@nginx.comWants=network-online.target
15*2027Sdefan@nginx.comAfter=network-online.target
16*2027Sdefan@nginx.com
17*2027Sdefan@nginx.com[Service]
18*2027Sdefan@nginx.comType=simple
19*2027Sdefan@nginx.comEnvironment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /var/run/unit/unit.pid"
20*2027Sdefan@nginx.comExecStart=/usr/sbin/unitd-debug $UNITD_OPTIONS --no-daemon
21*2027Sdefan@nginx.comExecReload=
22*2027Sdefan@nginx.comRuntimeDirectory=unit
23*2027Sdefan@nginx.comRuntimeDirectoryMode=0755
24*2027Sdefan@nginx.com
25*2027Sdefan@nginx.com[Install]
26*2027Sdefan@nginx.comWantedBy=multi-user.target
27