Bug 691224

Summary: ntsysv does not enable/disable services
Product: [Fedora] Fedora Reporter: Nerijus Baliūnas <nerijus>
Component: chkconfigAssignee: Bill Nottingham <notting>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: 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
ntsysv seems to not make any effect - if I disable some services, they are still launched when system boots.

Comment 1 Bill Nottingham 2011-03-28 16:53:27 UTC
What services in particular? (This is almost certainly due to systemd.)

Comment 2 Nerijus Baliūnas 2011-03-28 21:03:21 UTC
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.

Comment 3 Bill Nottingham 2011-04-26 21:46:46 UTC
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.

Comment 4 Fedora Update System 2011-04-27 17:49:08 UTC
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

Comment 5 Fedora Update System 2011-04-28 19:01:57 UTC
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).

Comment 6 Fedora Update System 2011-05-03 04:53:58 UTC
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.

Comment 7 Nerijus Baliūnas 2011-05-03 12:29:15 UTC
As now ntsysv does not show all services in a system, what command can I use to quickly see and disable all unneeded services?

Comment 8 Bill Nottingham 2011-05-03 14:39:30 UTC
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.

Comment 9 Nerijus Baliūnas 2011-05-03 15:19:02 UTC
But system-config-services is GUI application, and most server admins need console application. ntsysv was very good for this.

Comment 10 Fredrik Fjeldvær 2011-06-13 00:28:36 UTC
Hi. I have updated to chkconfig-1.3.52-1.fc15.x86_64. But this problem still exists.

Comment 11 Nerijus Baliūnas 2011-06-14 00:43:22 UTC
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?

Comment 12 Nerijus Baliūnas 2011-06-14 00:49:08 UTC
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?

Comment 13 Nerijus Baliūnas 2011-06-14 17:09:45 UTC
It's probably because of bug 709254.

Comment 14 Nerijus Baliūnas 2011-06-14 17:17:51 UTC
Should initscripts-legacy package be installed for comment 11?

Comment 15 Bill Nottingham 2011-06-14 18:18:08 UTC
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?

Comment 16 Fredrik Fjeldvær 2011-06-14 18:37:04 UTC
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

Comment 17 Bill Nottingham 2011-06-14 19:16:53 UTC
Fredrik, ok, what you're seeing is bug 709254.

Comment 18 Nerijus Baliūnas 2011-06-14 23:48:57 UTC
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?

Comment 19 Bill Nottingham 2011-06-15 18:51:52 UTC
What's the output of 'systemctl status courier-imap.service'?

Comment 20 Nerijus Baliūnas 2011-06-15 19:04:42 UTC
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

Comment 21 Bill Nottingham 2011-06-15 19:17:16 UTC
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.