add a "name" action, which pretty prints the "nice name" for a package (so,
mailserver or smtpd or so for a mailserver like sendmail) svn path=/nixpkgs/trunk/; revision=5043
This commit is contained in:
parent
e745e86d52
commit
617d06c71c
@ -76,3 +76,7 @@ status() {
|
||||
echo "stopped"
|
||||
fi
|
||||
}
|
||||
|
||||
name() {
|
||||
echo $prog
|
||||
}
|
||||
|
@ -153,6 +153,9 @@ case "$1" in
|
||||
status $SSHD
|
||||
RETVAL=$?
|
||||
;;
|
||||
name)
|
||||
name
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}"
|
||||
RETVAL=1
|
||||
|
Loading…
Reference in New Issue
Block a user