[PATCH] improve process-status output, including initctl list
David Jeske
davidj at gmail.com
Mon Apr 2 08:50:56 UTC 2012
I've attached the patch I'm using to make my initctl display output (list)
more human readable..
I don't have m4-fu, so I wasn't sure how to change the build properly.. it
needs "-lproc" and "-I/usr/include/proc"
I decided to just show days in floating point, since that seems about as
much precision as folks typically need here and it's easy to read.
The output looks like this:
root at w5:~/src2/upstart-0.6.5/util# initctl status mysql
start/running 5.13d 10652 mysql
root at w5:~/src2/upstart-0.6.5/util# initctl restart willow-smtpd
start/running 0.00d 14700 willow-smtpd
root at w5:~/src2/upstart-0.6.5/util# initctl list
start/running 44.14d 634 rsyslog
start/running 44.14d 675 tty4
start/running 44.14d 308 udev
start/running 44.14d 304 upstart-udev-bridge
stop/waiting mountall-net
stop/waiting rc
Enjoy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20120402/255fde44/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: upstart-0.6.5-listoutput.patch
Type: application/octet-stream
Size: 7036 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20120402/255fde44/attachment.obj>
More information about the upstart-devel
mailing list