summaryrefslogtreecommitdiffhomepage
path: root/pkg/deb/debian/unit-debug.service
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2021-12-02 08:52:52 +0300
committerAndrei Belov <defan@nginx.com>2021-12-02 08:52:52 +0300
commit8aa40e5901d1f9d05c35ddb7b93c2df8328d3e60 (patch)
tree0be243576cdefe5d081873c57c74665a6997d043 /pkg/deb/debian/unit-debug.service
parent2d6e926a1def94e4def5b8f8da73078685626ff4 (diff)
downloadunit-8aa40e5901d1f9d05c35ddb7b93c2df8328d3e60.tar.gz
unit-8aa40e5901d1f9d05c35ddb7b93c2df8328d3e60.tar.bz2
Packages: added systemd service for debug binary.
Diffstat (limited to 'pkg/deb/debian/unit-debug.service')
-rw-r--r--pkg/deb/debian/unit-debug.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/deb/debian/unit-debug.service b/pkg/deb/debian/unit-debug.service
new file mode 100644
index 00000000..252d8451
--- /dev/null
+++ b/pkg/deb/debian/unit-debug.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=NGINX Unit
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/unit.pid
+EnvironmentFile=-/etc/default/unit
+ExecStart=/usr/sbin/unitd-debug $DAEMON_ARGS
+ExecReload=
+
+[Install]
+WantedBy=multi-user.target