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-debug" 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 /var/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 /var/run/unit/unit.pid" 20ExecStart=/usr/sbin/unitd-debug $UNITD_OPTIONS --no-daemon 21ExecReload= 22RuntimeDirectory=unit 23RuntimeDirectoryMode=0755 24 25[Install] 26WantedBy=multi-user.target 27