projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79f5398
)
Use invoke-rc.d where installed, to avoid incorrect startup when installing
author
Jamie Cameron
<jcameron@webmin.com>
Mon, 3 Sep 2007 17:24:49 +0000
(17:24 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Mon, 3 Sep 2007 17:24:49 +0000
(17:24 +0000)
makedebian.pl
patch
|
blob
|
history
diff --git
a/makedebian.pl
b/makedebian.pl
index
1a6456c
..
251a508
100755
(executable)
--- a/
makedebian.pl
+++ b/
makedebian.pl
@@
-285,7
+285,11
@@
if [ "$product" = "webmin" ]; then
fi
rm -f /var/lock/subsys/$baseproduct
if [ "$inetd" != "1" ]; then
- /etc/init.d/$baseproduct start >/dev/null 2>&1 </dev/null
+ if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+ invoke-rc.d $baseproduct start >/dev/null 2>&1 </dev/null
+ else
+ /etc/init.d/$baseproduct start >/dev/null 2>&1 </dev/null
+ fi
fi
cat >/etc/$baseproduct/uninstall.sh <<EOFF
#!/bin/sh