mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
stunnel: Update init script
The reworked init script: * Loads and validates options using uci_validate_section() (through uci_load_validate()) * Allows service options be specified in the globals section * Hard-codes less global options (debug, syslog), as their default values already work * Adds support for almost all options (up to the current package version, 5.49) * Moves the pid file into a subdirectory (/var/run/stunnel) so that it can be created successfully when setuid is used Certain options are omitted: * chroot - requires more setup than the init script can manage * fips, libwrap - disabled at compile-time * iconActive, iconError, iconIdle, taskbar - gui/win32 only * verify - obsolete, verifyChain and/or verifyPeer should be used instead Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
config globals 'globals'
|
||||
option alt_config_file '/etc/stunnel/stunnel.conf'
|
||||
option debug '5'
|
||||
#option alt_config_file '/etc/stunnel/stunnel.conf'
|
||||
option setuid 'nobody'
|
||||
option setgid 'nogroup'
|
||||
|
||||
config service 'dummy'
|
||||
option enabled '1'
|
||||
option client '1'
|
||||
option accept_host 'localhost'
|
||||
option accept_port '6000'
|
||||
|
||||
Reference in New Issue
Block a user