1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
post_install() { systemctl enable adb-starter.service systemctl start adb-starter.service } pre_upgrade() { systemctl stop adb-starter.service } post_upgrade() { systemctl start adb-starter.service } pre_remove() { systemctl stop adb-starter.service systemctl disable adb-starter.service }