Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
aaa_base.9234
git-34-011e1546bd1092c2a8c9754866ca02439ed23d54...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File git-34-011e1546bd1092c2a8c9754866ca02439ed23d54.patch of Package aaa_base.9234
commit 011e1546bd1092c2a8c9754866ca02439ed23d54 Author: Werner Fink <werner@suse.de> Date: Mon Nov 6 13:45:18 2017 +0100 Get mixed use case of service wrapper script straight (bsc#1040613) Signed-off-by: Werner Fink <werner@suse.de> diff --git a/files/usr/sbin/service b/files/usr/sbin/service index 922f80e..b905d50 100755 --- a/files/usr/sbin/service +++ b/files/usr/sbin/service @@ -104,9 +104,12 @@ exec_rc () elif [ -x "$actiondir/$1/$2" ]; then rc="$actiondir/$1/$2" shift 2 - else + elif [ ${0##*/} = service ] ; then echo "Usage: $0 "$1" {start|stop|reload|restart|try-restart|force-reload|status}" return 1 + else + echo "Usage: $0 {start|stop|reload|restart|try-restart|force-reload|status}" + return 1 fi fi if [ -z "$rc" ]; then @@ -184,6 +187,14 @@ while test $# -gt 0; do h*) help ;; *) usage ;; esac + + case "${0##*/}" in + rc*) + if [ -n "$opt" ]; then + echo "Usage: $0 {start|stop|reload|restart|try-restart|force-reload|status}" + exit 1 + fi + esac done #
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor