Bug 691224
Summary: | ntsysv does not enable/disable services | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Nerijus Baliūnas <nerijus> |
Component: | chkconfig | Assignee: | Bill Nottingham <notting> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 15 | CC: | fredrik, metherid, notting, rvokal |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | chkconfig-1.3.52-1.fc15 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-06-15 19:17:16 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Nerijus Baliūnas
2011-03-27 16:25:08 UTC
What services in particular? (This is almost certainly due to systemd.) Lots of them - cups, nfs, etc. Yes, they are due to systemd, but in a test mailing list I was told to report bug here, as ntsysv should work with systemd. Not exactly what this bug asked for, but: http://git.fedorahosted.org/git/?p=chkconfig.git;a=commitdiff;h=2811bf138f151d195728751e349481567ef32974 This makes ntsysv not show or configure services overridden by systemd. Until native support gets integrated, it's better to not give an option that won't work. chkconfig-1.3.52-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/chkconfig-1.3.52-1.fc15 Package chkconfig-1.3.52-1.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing chkconfig-1.3.52-1.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/chkconfig-1.3.52-1.fc15 then log in and leave karma (feedback). chkconfig-1.3.52-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. As now ntsysv does not show all services in a system, what command can I use to quickly see and disable all unneeded services? It would be a combination of ntsysv and systemctl (or some future version of system-config-services.) I'd love to get native systemd service support in system-config-services, but that requires a bit more work; in the meantime, it's best to fix it so it doesn't mislead the admin. But system-config-services is GUI application, and most server admins need console application. ntsysv was very good for this. Hi. I have updated to chkconfig-1.3.52-1.fc15.x86_64. But this problem still exists. I have courier-imap enabled in ntsysv and /etc/rc.d/rc3.d/S80courier-imap link pointing to ../init.d/courier-imap exists, but courier-imap service does not start when booting. How do I enable legacy services? clamav is disabled in ntsysv, but it is started when I boot. My /etc/systemd/system/default.target link points to /lib/systemd/system/runlevel3.target, but it seems /etc/rc.d/rc3.d is not taking any effect. Should it be so? It's probably because of bug 709254. Should initscripts-legacy package be installed for comment 11? initscripts-legacy has nothing to do with running SysV services; it's for supporting boot with upstart. What clamav packages do you have installed? Fredrik - what issue are you seeing? I'm unable to disable mysqld and rpcbind using ntsysv. I have tried to enable and disable httpd and sshd this works fine. chkconfig --list mysql and rpcbind shows this: mysqld 0:off 1:off 2:on 3:on 4:on 5:off 6:off rpcbind 0:off 1:off 2:on 3:on 4:on 5:off 6:off [root@fredrik ~]# runlevel N 5 Not sure this is helpful, but here it is anyways: [root@fredrik ~]# ps aux | grep rpcbind root 1127 0.0 0.0 19016 856 ? Ss 19:45 0:00 rpcbind [root@fredrik ~]# ps aux | grep mysqld root 1673 0.0 0.0 115648 1520 ? S 19:46 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql mysql 1866 0.0 1.0 477944 42804 ? Sl 19:46 0:02 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock Fredrik, ok, what you're seeing is bug 709254. clamav-0.97-58.fc15.i686 and clamav-devel-0.97-58.fc15.i686 from atrpms. chkconfig --list clamav clamav 0:off 1:off 2:on 3:off 4:on 5:on 6:off Bug 709254 too. chkconfig --list courier-imap courier-imap 0:off 1:off 2:on 3:on 4:on 5:on 6:off But I am not sure about this? What's the output of 'systemctl status courier-imap.service'? courier-imap.service - SYSV: Courier-IMAP - IMAP server Loaded: loaded (/etc/rc.d/init.d/courier-imap) Active: failed since Tue, 14 Jun 2011 15:05:05 +0300; 1 day and 6h ago CGroup: name=systemd:/system/courier-imap.service But it is working since I started it manually yesterday (by service courier-imap start): # netstat -ntlp|grep 143 tcp 0 0 :::143 :::* LISTEN 3951/couriertcpd OK, that seems to be an issue with the service itself (or systemd) - it's trying to start on boot but failing. Can you please file that as a new bug against courier-imap? Re-closing this; the issues noted in the comments since it was re-opened aren't related to chkconfig, or are already covered by bug 709254. |