[Buildroot] [PATCH v2 1/1] cgroupsfs: new package

Arnout Vandecappelle arnout at mind.be
Fri Feb 12 16:14:34 UTC 2016



On 12-02-16 16:17, Thomas Petazzoni wrote:
> Hello,
> 
> Thanks for this new iteration! See some comments below.
> 
> On Fri, 12 Feb 2016 19:50:42 +0530, Niranjan Reddy wrote:
>> From: Niranjan <niranjan.reddy at rockwellcollins.com>
[snip]
>> +	status)
>> +		if mountpoint -q /sys/fs/cgroup; then
>> +			# TODO decide whether to detect "partial mounted" status (ie, whether all available subsystems are mounted correctly)
> 
> This comment needs to be wrapped. Or handled :)

 Actually, we don't need status, only very old init scripts (or init scripts
delivered by the package) have that.


 Regards,
 Arnout

> 
>> +			echo "cgroupfs hierarchy is mounted"
>> +			exit 0
>> +		else
>> +			echo "cgroupfs hierarchy is not mounted"
>> +			exit 1
>> +		fi
>> +		;;
>> +
>> +	*)
>> +		echo "Usage: $0 {start|stop|restart|status}"
>> +		exit 1
>> +		;;
>> +esac
> 
> Also, we often put the start(), stop() and status() code in functions,
> so that the indentation remains more reasonable. Again, see S50dropbear
> for a pretty good example.
> 
[snip]

-- 
Arnout Vandecappelle      arnout dot vandecappelle at essensium dot com
Senior Embedded Software Architect . . . . . . +32-478-010353 (mobile)
Essensium, Mind division . . . . . . . . . . . . . . http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium . . . . . BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF



More information about the buildroot mailing list