mlavin/argyle — pull request #1 by wraithan (2011-10-15 22:37:25+00:00)
Title: adding templating for service commands

This allows people on other operating systems to use the service commands as well by customizing the env.service_command_template.

For example, Arch Linux keeps all services in `/etc/rc.d/` and in recent times, using the`rc.d` command is favored over calling the scripts from the services directory. Simply changing `service_command` to use `invoke-rc.d` wouldn't have been enough because it has different argument order.

invoke-rc.d nginx restart

vs

rc.d restart nginx

What I've done solves the problem of specifying the dir, or service script in the most general way possible. Allowing most any distro I know of to us this.

I did no add documentation for this as not much else is documented yet, so I'd be shooting in the dark by trying to add it.