Hi Michael,
I would be nice if you add these lines in the init.d Script:
new line 30 (after set -e)
Code:
--------------------
. /lib/lsb/init-functions
--------------------
New lines in the case sub:
Code:
--------------------
status)
status_of_proc /usr/bin/$NEWNAME $NEWNAME
#status_of_proc "$DAEMON" "$NEWNAME" && exit 0 || exit $?
;;
--------------------
added status in the Usage decription:
Code:
--------------------
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2
exit 1
;;
--------------------
With these changes a *service --status-all*
gives the output
*[ + ]* logitechmediaserver and not *[ ? ]* logitechmediaserver
Reason for this feature request:
http://forums.slimdevices.com/showthread.php?104527-Kubuntu-15-10-LMS-7-8-0-won-t-start
Gruss
Jan
------------------------------------------------------------------------
DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516
View this thread: http://forums.slimdevices.com/showthread.php?t=104554
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix