[Slackbuilds-users] PostgreSQL init script stop/restart options

Timothy Pollard timp at timp.com.au
Sun May 31 22:54:04 UTC 2009

On Sun, 31 May 2009 21:48:53 +0200
Adis Nezirovic <adis at linux.org.ba> wrote:
> Hello,
> Anyway, my first idea was to use something like this
>   /etc/rc.d/rc.postgres {stop|restart} [smart|fast|immediate]
> (smart is the default and can be ommited)
> It's somewhat strange syntax for init script, but other options should
> be used only for extreme situations, especially immediate).
> Other proposal would be:
>   /etc/rc.d/rc.postgres {restart|force-restart|unclean-restart}
>   /etc/rc.d/rc.postgres {stop|force-stop|unclean-stop}
> What do you think, what's the proper way to treat "advanced" init script
> actions?
> Best regards,
> Adis

I tend to agree with Robby in that the second block is probably best. As
well as preferring it personally, this seems more similar to how the official
rc.httpd script works.

/etc/rc.d/rc.httpd {start|stop|restart|graceful|graceful-stop}

("graceful-stop" is essentially just a special variant of stop)

This seems to be the standard, if there are two different variants of the same
command the default one is the one word command, and the other variants are two
word commands separated by hyphens.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20090601/2bd1a2a6/attachment.asc>

More information about the SlackBuilds-users mailing list