summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-07-18 23:00:10 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-07-18 23:00:10 +0400
commitc367bc013091f9e6757148dfe1b7e5f9e5a30184 (patch)
treeda011e6b527299578938ebdc07c3d76b75dfaea5
parent9451d4c8f6be36b4f06f7ad12f0038697f138e5a (diff)
downloadlighttpd-c367bc013091f9e6757148dfe1b7e5f9e5a30184.tar.gz
Added SMF support in lighty-enable-mod
-rw-r--r--debian/changelog2
-rwxr-xr-xdebian/lighty-enable-mod6
2 files changed, 7 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index f9714ab..03cdb20 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,8 @@ lighttpd (1.4.32-1+dyson1) UNRELEASED; urgency=low
[ Igor Pashev ]
* Added build-dep dh-smf [illumos-any]
+ * debian/lighty-enable-mod prints how to restart lighttd
+ with SMF if running SMF
-- Igor Pashev <pashev.igor@gmail.com> Thu, 18 Jul 2013 22:17:47 +0400
diff --git a/debian/lighty-enable-mod b/debian/lighty-enable-mod
index 9765f2b..cac20c7 100755
--- a/debian/lighty-enable-mod
+++ b/debian/lighty-enable-mod
@@ -177,5 +177,9 @@ foreach my $do (@todo) {
}
}
-print "Run /etc/init.d/lighttpd force-reload to enable changes\n";
+if ( -x '/usr/bin/smf_present') {
+ print "Run 'svcadm restart lighttpd' to enable changes\n";
+} else {
+ print "Run '/etc/init.d/lighttpd force-reload' to enable changes\n";
+}
exit($exit_status);