xref: /unit/pkg/rpm/rpmbuild/SOURCES/unit.service (revision 911:7012b4fd5113)
1# Modifying this file in-place is not recommended, because changes
2# will be overwritten during package upgrades.  To customize the
3# behaviour, run "systemctl edit unit" to create an override unit.
4
5# For example, to change options given to the unitd binary at startup,
6# create an override unit (as is done by systemctl edit) and enter
7# the following:
8
9#       [Service]
10#       Environment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /run/unit/unit.pid"
11
12[Unit]
13Description=NGINX Unit
14Wants=network-online.target
15After=network-online.target
16
17[Service]
18Type=simple
19Environment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /run/unit/unit.pid"
20ExecStart=/usr/sbin/unitd $UNITD_OPTIONS --no-daemon
21ExecReload=
22RuntimeDirectory=unit
23RuntimeDirectoryMode=0755
24
25[Install]
26WantedBy=multi-user.target
27