Wind River Support Network

HomeDefectsLIN6-3889
Fixed

LIN6-3889 : wrlinux 5.x - initrscripts lacking status property.

Created: May 14, 2013    Updated: Mar 5, 2016
Resolved Date: Dec 1, 2013
Previous ID: LIN5-7471, LIN6-3104
Found In Version: 6.0
Fix Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

in wrlinux 5, the "status" attribute for some initscripts is not available.
because of this, 'service --status-all' does not give useful system info as the start scripts are not LSB compliant.

From LSB3.1:
 "The start, stop, restart, force-reload, and status actions shall be supported by all init scripts"

http://refspecs.linuxfoundation.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

List of init scripts that lack 'status' (but properly checks $1) bind bootlogd networking nfsserver ntpd ssh syslog vsftpd xinetd stop-bootlogd


Steps to Reproduce

build a wrlinux 5.x project based on any kernel/BSP/rootfs combo. 
for example: qemux86 / standard kernel / standard rootfs

run: root@qemu0:~# service --status-all
 [ ? ]  alsa-state
 [ ? ]  apmd
 [ ? ]  atd
 [ + ]  avahi-daemon
 [ ? ]  banner.sh
 [ ? ]  bind
 [ ? ]  bootlogd
 [ ? ]  bootmisc.sh
 [ ? ]  checkroot.sh
 [ + ]  crond
 [ ? ]  dbus-1
 [ ? ]  devpts.sh
 [ ? ]  dmesg
 [ ? ]  fbsetup
 [ ? ]  hostname.sh
 [ ? ]  irattach
 [ ? ]  modutils.sh
 [ ? ]  mountall.sh
 [ ? ]  mountnfs.sh
 [ ? ]  networking
 [ ? ]  nfsserver
 [ ? ]  populate-volatile.sh
 [ - ]  postfix
 [ ? ]  ppp
 [ ? ]  rcinit
 [ ? ]  rmnologin.sh
 [ - ]  rpcbind
 [ ? ]  save-rtc.sh
 [ ? ]  sendsigs
 [ ? ]  sshd
 [ ? ]  stop-bootlogd
 [ ? ]  sysfs.sh
 [ ? ]  syslog
 [ ? ]  syslog.sysklogd
 [ + ]  tcf-agent
 [ + ]  udev
 [ ? ]  umountfs
 [ ? ]  umountnfs.sh
 [ ? ]  urandom

root@qemu0:~# service syslog status
Usage: /etc/init.d/sysklogd {start|stop|reload|restart|force-reload|reload-or-restart}
root@qemu0:~# service udev status
udevd (pid 192 191 61) is running...

Live chat
Online