On regenerative processes and inventory control