Packages: added systemd service for debug binary.
This commit is contained in:
@@ -99,7 +99,8 @@ install: build do.tests
|
||||
dh_testroot
|
||||
dh_prep
|
||||
dh_installdirs
|
||||
dh_installsystemd
|
||||
dh_installsystemd -punit --name=unit unit.service
|
||||
dh_installsystemd -punit --name=unit-debug --no-start --no-enable unit-debug.service
|
||||
dh_installlogrotate
|
||||
cd $(BUILDDIR_unit) && DESTDIR=$(INSTALLDIR) make install
|
||||
cd $(BUILDDIR_unit) && DESTDIR=$(INSTALLDIR_dev) make libunit-install
|
||||
|
||||
14
pkg/deb/debian/unit-debug.service
Normal file
14
pkg/deb/debian/unit-debug.service
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user