Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#11366 closed defect (fixed)

luci.sys.index spams syslog with services' "Available-commands" help output

Reported by: anonymous Owned by:
Priority: high Milestone: Barrier Breaker 14.07
Component: luci Version: Trunk
Keywords: Cc:

Description

luci.sys.index is invoked by LuCI System>Startup page

Editing the index function to include a missing "enabled" argument will amend this regression

function init.index(name)
	if fs.access(init.dir..name) then
		return call("env -i sh -c 'source %s%s enabled; exit $START' >/dev/null"
			%{ init.dir, name })
	end
end

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by anonymous

This is what the log looks like (there are dozens of such entries, please fix)

May  6 21:47:55 OpenWrt user.info sysinit: Syntax: /etc/rc.d/S96led [command]
May  6 21:47:55 OpenWrt user.info sysinit: Available commands:
May  6 21:47:55 OpenWrt user.info sysinit: 	start	Start the service
May  6 21:47:55 OpenWrt user.info sysinit: 	stop	Stop the service
May  6 21:47:55 OpenWrt user.info sysinit: 	restart	Restart the service
May  6 21:47:55 OpenWrt user.info sysinit: 	reload	Reload configuration files (or restart if that fails)
May  6 21:47:55 OpenWrt user.info sysinit: 	enable	Enable service autostart
May  6 21:47:55 OpenWrt user.info sysinit: 	disable	Disable service autostart
May  6 21:47:56 OpenWrt user.info sysinit: Syntax: /etc/rc.d/S97watchdog [command]
May  6 21:47:56 OpenWrt user.info sysinit: Available commands:
May  6 21:47:56 OpenWrt user.info sysinit: 	start	Start the service
May  6 21:47:56 OpenWrt user.info sysinit: 	stop	Stop the service
May  6 21:47:56 OpenWrt user.info sysinit: 	restart	Restart the service
May  6 21:47:56 OpenWrt user.info sysinit: 	reload	Reload configuration files (or restart if that fails)
May  6 21:47:56 OpenWrt user.info sysinit: 	enable	Enable service autostart
May  6 21:47:56 OpenWrt user.info sysinit: 	disable	Disable service autostart

comment:2 Changed 6 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.