xref: /unit/pkg/rpm/rpmbuild/SOURCES/unit-debug.service (revision 2042:56540a52177d)
12042Sdefan@nginx.com# Modifying this file in-place is not recommended, because changes
22042Sdefan@nginx.com# will be overwritten during package upgrades.  To customize the
32042Sdefan@nginx.com# behaviour, run "systemctl edit unit-debug" to create an override unit.
42042Sdefan@nginx.com
52042Sdefan@nginx.com# For example, to change options given to the unitd binary at startup,
62042Sdefan@nginx.com# create an override unit (as is done by systemctl edit) and enter
72042Sdefan@nginx.com# the following:
82042Sdefan@nginx.com
92042Sdefan@nginx.com#       [Service]
102042Sdefan@nginx.com#       Environment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /var/run/unit/unit.pid"
112042Sdefan@nginx.com
122042Sdefan@nginx.com[Unit]
132042Sdefan@nginx.comDescription=NGINX Unit
142042Sdefan@nginx.comWants=network-online.target
152042Sdefan@nginx.comAfter=network-online.target
162042Sdefan@nginx.com
172042Sdefan@nginx.com[Service]
182042Sdefan@nginx.comType=simple
192042Sdefan@nginx.comEnvironment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /var/run/unit/unit.pid"
202042Sdefan@nginx.comExecStart=/usr/sbin/unitd-debug $UNITD_OPTIONS --no-daemon
212042Sdefan@nginx.comExecReload=
222042Sdefan@nginx.comRuntimeDirectory=unit
232042Sdefan@nginx.comRuntimeDirectoryMode=0755
242042Sdefan@nginx.com
252042Sdefan@nginx.com[Install]
262042Sdefan@nginx.comWantedBy=multi-user.target
27