Report if service is not executable.
This commit is contained in:
parent
907ca8a89f
commit
077b2d3ba8
@ -55,9 +55,12 @@ add(const char *runlevel, const char *service)
|
|||||||
{
|
{
|
||||||
int retval = -1;
|
int retval = -1;
|
||||||
|
|
||||||
if (! rc_service_exists (service))
|
if (!rc_service_exists(service)) {
|
||||||
|
if (errno == ENOEXEC)
|
||||||
|
eerror("%s: service `%s' is not executeable", applet, service);
|
||||||
|
else
|
||||||
eerror("%s: service `%s' does not exist", applet, service);
|
eerror("%s: service `%s' does not exist", applet, service);
|
||||||
else if (rc_service_in_runlevel (service, runlevel)) {
|
} else if (rc_service_in_runlevel(service, runlevel)) {
|
||||||
ewarn ("%s: %s already installed in runlevel `%s'; skipping",
|
ewarn ("%s: %s already installed in runlevel `%s'; skipping",
|
||||||
applet, service, runlevel);
|
applet, service, runlevel);
|
||||||
retval = 0;
|
retval = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user