Why isn't a stopped service started by a call to restart?
'man initctl' states the following about the Upstart command 'restart':
>> Note that this command can only be used when there is an instance of JOB, if there is none then it returns an error instead of starting a new one.
However, for example, calling '/etc/init.d/idmapd restart' when idmapd is originally stopped will result in idmapd being started without an error. This is different from the behavior of 'restart'.
What makes this somewhat confusing is that some /etc/init.d/ scripts (like idmapd in my case) will emit a warning declaring their conversion to Upstart and refer users to use 'service idmapd restart' instead. 'service' relies on 'restart' to perform the restart and thus behaves differently from the original /etc/init.d/ script. I don't seem to be the only one:
https:/
https:/
So, my questions are:
1. Is there a particular reason why the command "restart $SERVICE" does not duplicate the behavior of "/etc/init.
2. Should there be a wishlist/bug for package upstart? Or does this remain a bug report for package sysvinit? (sysvinit provides the command 'service')
Thanks in advance.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu upstart Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: