change for two services
This commit is contained in:
parent
382181f726
commit
329af2dfca
|
@ -1,4 +1,4 @@
|
||||||
keyboard-hook (0.1.0-1) UNRELEASED; urgency=medium
|
keyboard-hook (0.1.0-1) experimental; urgency=medium
|
||||||
|
|
||||||
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
|
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
keyboard-hook
|
|
@ -0,0 +1,2 @@
|
||||||
|
keyboard-hook_0.1.0-1_arm64.buildinfo unknown optional
|
||||||
|
keyboard-hook_0.1.0-1_arm64.deb unknown optional
|
|
@ -1,2 +1 @@
|
||||||
usr/bin/* usr/bin/
|
usr/bin/* usr/bin/
|
||||||
etc/init.d/* etc/init.d/
|
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
[Unit]
|
||||||
|
Description=keyboard-hook
|
||||||
|
After=network-online.target
|
||||||
|
Wants=network-online.target systemd-networkd-wait-online.service
|
||||||
|
|
||||||
|
StartLimitIntervalSec=500
|
||||||
|
StartLimitBurst=5
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5s
|
||||||
|
|
||||||
|
ExecStart=/usr/bin/python /usr/bin/server.py
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -0,0 +1,2 @@
|
||||||
|
dh_installsystemd
|
||||||
|
dh_installsystemd
|
|
@ -0,0 +1,38 @@
|
||||||
|
# Automatically added by dh_installsystemd/13.3.4
|
||||||
|
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
|
||||||
|
systemctl --system daemon-reload >/dev/null || true
|
||||||
|
fi
|
||||||
|
# End automatically added section
|
||||||
|
# Automatically added by dh_installsystemd/13.3.4
|
||||||
|
if [ "$1" = "remove" ]; then
|
||||||
|
if [ -x "/usr/bin/deb-systemd-helper" ]; then
|
||||||
|
deb-systemd-helper mask 'keyboard-hook-server.service' >/dev/null || true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "purge" ]; then
|
||||||
|
if [ -x "/usr/bin/deb-systemd-helper" ]; then
|
||||||
|
deb-systemd-helper purge 'keyboard-hook-server.service' >/dev/null || true
|
||||||
|
deb-systemd-helper unmask 'keyboard-hook-server.service' >/dev/null || true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# End automatically added section
|
||||||
|
# Automatically added by dh_installsystemd/13.3.4
|
||||||
|
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
|
||||||
|
systemctl --system daemon-reload >/dev/null || true
|
||||||
|
fi
|
||||||
|
# End automatically added section
|
||||||
|
# Automatically added by dh_installsystemd/13.3.4
|
||||||
|
if [ "$1" = "remove" ]; then
|
||||||
|
if [ -x "/usr/bin/deb-systemd-helper" ]; then
|
||||||
|
deb-systemd-helper mask 'keyboard-hook.service' >/dev/null || true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "purge" ]; then
|
||||||
|
if [ -x "/usr/bin/deb-systemd-helper" ]; then
|
||||||
|
deb-systemd-helper purge 'keyboard-hook.service' >/dev/null || true
|
||||||
|
deb-systemd-helper unmask 'keyboard-hook.service' >/dev/null || true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# End automatically added section
|
|
@ -7,10 +7,8 @@ StartLimitIntervalSec=500
|
||||||
StartLimitBurst=5
|
StartLimitBurst=5
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=on-failure
|
Type=oneshot
|
||||||
RestartSec=5s
|
ExecStart=/bin/bash /usr/bin/keyboard-hook.sh
|
||||||
|
|
||||||
ExecStart=/usr/bin/python /usr/bin/server.py
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
misc:Depends=
|
||||||
|
misc:Pre-Depends=
|
|
@ -0,0 +1,32 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
# Automatically added by dh_installsystemd/13.3.4
|
||||||
|
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
|
||||||
|
# This will only remove masks created by d-s-h on package removal.
|
||||||
|
deb-systemd-helper unmask 'keyboard-hook.service' >/dev/null || true
|
||||||
|
|
||||||
|
# was-enabled defaults to true, so new installations run enable.
|
||||||
|
if deb-systemd-helper --quiet was-enabled 'keyboard-hook.service'; then
|
||||||
|
# Enables the unit on first installation, creates new
|
||||||
|
# symlinks on upgrades if the unit file has changed.
|
||||||
|
deb-systemd-helper enable 'keyboard-hook.service' >/dev/null || true
|
||||||
|
else
|
||||||
|
# Update the statefile to add new symlinks (if any), which need to be
|
||||||
|
# cleaned up on purge. Also remove old symlinks.
|
||||||
|
deb-systemd-helper update-state 'keyboard-hook.service' >/dev/null || true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# End automatically added section
|
||||||
|
# Automatically added by dh_installsystemd/13.3.4
|
||||||
|
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
|
||||||
|
if [ -d /run/systemd/system ]; then
|
||||||
|
systemctl --system daemon-reload >/dev/null || true
|
||||||
|
if [ -n "$2" ]; then
|
||||||
|
_dh_action=restart
|
||||||
|
else
|
||||||
|
_dh_action=start
|
||||||
|
fi
|
||||||
|
deb-systemd-invoke $_dh_action 'keyboard-hook.service' >/dev/null || true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# End automatically added section
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
ln -s /etc/init.d/bootstrapping.sh ../rc3.d/S99bootstrapping
|
|
||||||
systemd daemon-load
|
|
||||||
systemd enable keyboard-hook.service
|
|
|
@ -22,3 +22,11 @@
|
||||||
#override_dh_auto_configure:
|
#override_dh_auto_configure:
|
||||||
# dh_auto_configure -- \
|
# dh_auto_configure -- \
|
||||||
# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
|
# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
|
||||||
|
override_dh_auto_install:
|
||||||
|
dh_auto_install
|
||||||
|
dh_systemd_enable || true
|
||||||
|
dh_systemd_start || true
|
||||||
|
|
||||||
|
override_dh_installsystemd:
|
||||||
|
dh_installsystemd --name=keyboard-hook
|
||||||
|
dh_installsystemd --name=keyboard-hook-server
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
3.0 (quilt)
|
3.0 (native)
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
### BEGIN INIT INFO
|
||||||
|
# Provides : keyboard-hook
|
||||||
|
# Required-Start : $all
|
||||||
|
# Required-Stop :
|
||||||
|
# Default-Start : 99
|
||||||
|
# Default-Stop :
|
||||||
|
### END INIT INFO
|
||||||
sleep 5
|
sleep 5
|
||||||
if [[ ! -f "~/debugwifi.log" ]];then
|
if [[ ! -f "~/debugwifi.log" ]];then
|
||||||
touch ~/debugwifi.log
|
touch ~/debugwifi.log
|
Loading…
Reference in New Issue