Gentoo Archives: gentoo-dev

From: Peter Stuge <peter@×××××.se>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: openrc init scripts taking command line arguments
Date: Wed, 18 Jul 2012 20:09:05
Message-Id: 20120718194949.30231.qmail@stuge.se
In Reply to: [gentoo-dev] rfc: openrc init scripts taking command line arguments by William Hubbs
1 William Hubbs wrote:
2 > /etc/init.d/foo stop start
3 >
4 > would no longer work the way you might expect because there would be no
5 > way to tell whether start is a command or an argument to stop.
6 >
7 > What are your thoughts about this change?
8
9 /etc/init.d/foo stop start
10
11 along with all other commands can work like before.
12
13 /etc/init.d/foo stop -- start
14
15 can pass start as an argument to the stop command.
16
17
18 //Peter

Replies