File: postinst-init-restart

package info (click to toggle)
debhelper 7.0.15
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,468 kB
  • ctags: 80
  • sloc: perl: 3,434; makefile: 232; sh: 7
file content (13 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
if [ -x "/etc/init.d/#SCRIPT#" ]; then
	update-rc.d #SCRIPT# #INITPARMS# >/dev/null
	if [ -n "$2" ]; then
		_dh_action=restart
	else
		_dh_action=start
	fi
	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
		invoke-rc.d #SCRIPT# $_dh_action || #ERROR_HANDLER#
	else
		/etc/init.d/#SCRIPT# $_dh_action || #ERROR_HANDLER#
	fi
fi