aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVáclav Pavlín <vpavlin@redhat.com>2013-11-12 13:27:45 +0100
committerVáclav Pavlín <vpavlin@redhat.com>2013-11-12 13:29:36 +0100
commit20103e709fcd6e2a9c21f2c64948736cd81cff9c (patch)
tree9fe10e9c588d905c0ffb0045215034e9c76fad89
parent4632b2f3c067461ba7ab815affcca9ff7e3bf12c (diff)
downloadinitscripts-20103e709fcd6e2a9c21f2c64948736cd81cff9c.tar
initscripts-20103e709fcd6e2a9c21f2c64948736cd81cff9c.tar.gz
initscripts-20103e709fcd6e2a9c21f2c64948736cd81cff9c.tar.bz2
initscripts-20103e709fcd6e2a9c21f2c64948736cd81cff9c.tar.xz
initscripts-20103e709fcd6e2a9c21f2c64948736cd81cff9c.zip
service: suggest using systemctl if unknown action is used (#1029350)
-rwxr-xr-xservice1
1 files changed, 1 insertions, 0 deletions
diff --git a/service b/service
index 66870060..8ef7f6e5 100755
--- a/service
+++ b/service
@@ -78,5 +78,6 @@ elif `echo $ACTION | egrep -q "start|stop|restart|try-restart|reload|force-reloa
echo $"Redirecting to /bin/systemctl ${ACTION} ${OPTIONS} ${SERVICE}.service" >&2
exec /bin/systemctl ${ACTION} ${OPTIONS} ${SERVICE}.service
else
+ echo $"The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl." >&2
exit 2
fi