equivalent of chkconfig
Luis Mondesi
lemsx1 at gmail.com
Tue Aug 4 22:28:57 UTC 2015
Exactly for those reasons.
What we probably would like to see is "update-service" which would wrap all init services into one umbrella.
update-service --list # shows all services and init running it: runit, upstart, systemd, and sysv to start
update-service <command> <service> [service] # for trying to call "command" for each of the services' init systems. Essentially, same as /sbin/service does in Fedora/RHEL 7 which was missed in Debian/Ubuntu. The difference is that this tool would also work in batch mode and also enable/disable services.
--
Luis
> On Aug 4, 2015, at 17:59, João M. S. Silva <joao.m.santos.silva at gmail.com> wrote:
>
> Moreover:
>
> $ update-rc.d modemmanager enable
> update-rc.d: /etc/init.d/modemmanager: file does not exist
>
>
>> On 08/04/2015 10:34 PM, Luis Mondesi wrote:
>> I believe RHEL 7 does the right thing with chkconfig. It's simply an
>> abstraction. Systemctl is fine, but that's probably overkill for simply
>> turning things on or off.
>>
>> systemctl status foo
>> systemctl disable foo
>> systemctl stop foo
>>
>> As opposed to:
>> chkconfig foo off
>>
>> My guess is that it should be relatively simple to write your own
>> wrapper once you know what you're doing. However, to keep things simple
>> for everybody else, it's better to have somebody who knows better
>> actually write this wrapper for the rest of us. That way the
>> documentation stays simple for all future init replacements. Makes the
>> vendors happy as well as the end users.
>>
>> Just my 2 cents...
>>
>> --
>> Luis
>>
>> On Aug 4, 2015, at 16:09, Martinx - ジェームズ
>> <thiagocmartinsc at gmail.com <mailto:thiagocmartinsc at gmail.com>> wrote:
>>
>>> Does chkconfig still works with systemd?
>>>
>>>
>>> On Tue, Aug 4, 2015, 16:59 João M. S. Silva
>>> <joao.m.santos.silva at gmail.com <mailto:joao.m.santos.silva at gmail.com>>
>>> wrote:
>>>
>>> What do you mean?
>>>
>>> Installing chkconfig in Ubuntu?
>>>
>>> On 08/04/2015 08:51 PM, Bob Holtzman wrote:
>>> > On Tue, Aug 04, 2015 at 05:38:03PM +0100, João M. S. Silva wrote:
>>> >> Hi,
>>> >>
>>> >> I suggest an equivalent of Fedora's chkconfig for server startup
>>> >> service administration.
>>> >>
>>> >> It seems strange that a simple solution for this problem does not
>>> >> already exist, but from all the questions that I've checked, that
>>> >> seems the case:
>>> >>
>>> >>
>>> http://askubuntu.com/questions/656496/how-to-enable-disable-startup-services-in-ubuntu
>>> >>
>>> >>
>>> http://askubuntu.com/questions/19320/how-to-enable-or-disable-services?lq=1
>>> >>
>>> >> etc.
>>> >
>>> > Something wrong with downloading/installing it from a repo?
>>> >
>>>
>>> --
>>> João M. S. Silva
>>>
>>> --
>>> Ubuntu-devel-discuss mailing list
>>> Ubuntu-devel-discuss at lists.ubuntu.com
>>> <mailto:Ubuntu-devel-discuss at lists.ubuntu.com>
>>> Modify settings or unsubscribe at:
>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
>>>
>>> --
>>> Ubuntu-devel-discuss mailing list
>>> Ubuntu-devel-discuss at lists.ubuntu.com
>>> <mailto:Ubuntu-devel-discuss at lists.ubuntu.com>
>>> Modify settings or unsubscribe at:
>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
>
> --
> João M. S. Silva
More information about the Ubuntu-devel-discuss
mailing list