File: postinst

package info (click to toggle)
userv 1.2.0
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, stretch
  • size: 700 kB
  • ctags: 1,013
  • sloc: ansic: 4,220; lex: 287; sh: 207; makefile: 206
file content (9 lines) | stat: -rw-r--r-- 175 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/bin/sh
set -e
update-rc.d userv defaults 19 50 > /dev/null

if command -v invoke-rc.d >/dev/null 2>&1; then
    invoke-rc.d userv start
else
    /etc/init.d/userv start
fi