diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-07-18 23:00:10 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-07-18 23:00:10 +0400 |
commit | c367bc013091f9e6757148dfe1b7e5f9e5a30184 (patch) | |
tree | da011e6b527299578938ebdc07c3d76b75dfaea5 | |
parent | 9451d4c8f6be36b4f06f7ad12f0038697f138e5a (diff) | |
download | lighttpd-c367bc013091f9e6757148dfe1b7e5f9e5a30184.tar.gz |
Added SMF support in lighty-enable-mod
-rw-r--r-- | debian/changelog | 2 | ||||
-rwxr-xr-x | debian/lighty-enable-mod | 6 |
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); |