From acf99b02610aadddd42dc434c36ed3fe0b9eb5af Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 16 Jan 2019 08:59:51 +0100 Subject: initial package open https://github.com/nginx/unit/pull/215 system crypto policy open https://github.com/nginx/unit/pull/212 systemd improvments --- unit.service | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 unit.service (limited to 'unit.service') diff --git a/unit.service b/unit.service new file mode 100644 index 0000000..f888685 --- /dev/null +++ b/unit.service @@ -0,0 +1,26 @@ +# Modifying this file in-place is not recommended, because changes +# will be overwritten during package upgrades. To customize the +# behaviour, run "systemctl edit unit" to create an override unit. + +# For example, to change options given to the unitd binary at startup, +# create an override unit (as is done by systemctl edit) and enter +# the following: + +# [Service] +# Environment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /run/unit/unit.pid" + +[Unit] +Description=NGINX Unit +Wants=network-online.target +After=network-online.target + +[Service] +Type=simple +Environment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /run/unit/unit.pid" +ExecStart=/usr/sbin/unitd $UNITD_OPTIONS --no-daemon +ExecReload= +RuntimeDirectory=unit +RuntimeDirectoryMode=0755 + +[Install] +WantedBy=multi-user.target -- cgit