generated from general-packages/pika-pkg-template
Some checks failed
PikaOS Package Build & Release (amd64-v3) / build (push) Failing after 27s
23 lines
451 B
Bash
Executable File
23 lines
451 B
Bash
Executable File
#!/bin/bash
|
|
. /usr/share/debconf/confmodule
|
|
|
|
if [[ $1 == "configure" ]]; then
|
|
systemctl unmask ckb-next-daemon.service
|
|
systemctl enable ckb-next-daemon.service
|
|
fi
|
|
|
|
|
|
OLDPID=$(pidof ckb-next)
|
|
if [[ -n "$OLDPID" ]]; then
|
|
killall -HUP ckb-next 2>/dev/null
|
|
sleep 6
|
|
NEWPID=$(pidof ckb-next)
|
|
if [[ "$OLDPID" == "$NEWPID" ]]; then
|
|
killall -9 ckb-next 2>/dev/null
|
|
fi
|
|
fi
|
|
|
|
systemctl start ckb-next-daemon.service
|
|
|
|
#DEBHELPER#
|