howto create the 'service' command - Printable Version +- Linux-Noob Forums (https://www.linux-noob.com/forums) +-- Forum: Distro Noob (https://www.linux-noob.com/forums/forum-10.html) +--- Forum: Gentoo (https://www.linux-noob.com/forums/forum-93.html) +--- Thread: howto create the 'service' command (/thread-2533.html) |
howto create the 'service' command - znx - 2005-07-27 I've always sort of liked the 'service' command that comes with redhat, so I created my own: Create a file (as root) /usr/sbin/service Code: #!/bin/sh Done.. :) Example usage: Code: service mysql start Always one for making completions I did this too, mind this is gentoo aimed a little (the secondary option) Place this in ~/.bashrc or /etc/bash.bashrc (or /etc/bash_completion.d/service for gentoo users) Code: # a function for the autocompletion of the service command. |