opensm: Make it possible to enable opensm with chkconfig
PATCH 2/6 opensm: Make it possible to enable opensm with chkconfig
The command "chkconfig $service on" enables a service in the "Default-Start" runlevels.
--- scripts/opensm.init.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
scripts/opensm.init.in +2 -2
@@ -9,8 +9,8 @@ # Provides: opensm # Required-Start: $syslog # Required-Stop: -# Default-Start: none -# Default-Stop: 0 1 6 +# Default-Start: 2 3 5 +# Default-Stop: 0 1 4 6 # Description: Manage OpenSM ### END INIT INFO #
Signature · 6 lines
1.7.7 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Bart,
Quoted 13 lines · Bart Van Assche
The command "chkconfig $service on" enables a service in the "Default-Start" runlevels.
Signed-off-by Bart Van Assche <[email protected]>--- scripts/opensm.init.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)scripts/opensm.init.in +0
-0
scripts/opensm.init.in line 13
Quoted 7 lines
scripts/opensm.init.in +2
-2@@ -9,8 +9,8 @@ # Provides: opensm # Required-Start: $syslog # Required-Stop: -# Default-Start: none -# Default-Stop: 0 1 6 +# Default-Start: 2 3 5 +# Default-Stop: 0 1 4 6
Why it's needed also to stop on runlevel 4?
-- Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · Alex Netes
Hi Bart,
Quoted 8 lines · Bart Van Assche
The command "chkconfig $service on" enables a service in the "Default-Start" runlevels.
Signed-off-by Bart Van Assche <[email protected]>--- scripts/opensm.init.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Quoted 14 lines
scripts/opensm.init.in line 13
Quoted 12 lines
scripts/opensm.init.in +2
-2@@ -9,8 +9,8 @@ # Provides: opensm # Required-Start: $syslog # Required-Stop: -# Default-Start: none -# Default-Stop: 0 1 6 +# Default-Start: 2 3 5 +# Default-Stop: 0 1 4 6Why it's needed also to stop on runlevel 4?
Good question. As far as I know runlevel 4 is not used. I've noticed though that some Linux distributions (RHEL) enable services in runlevel 4 that are also enabled in runlevel 3. The LSB isn't very clear about this subject though. A quote from http://refspecs.linux-foundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/runlevels.html:
0 halt
1 single user mode
2 multiuser with no network services exported
3 normal/full multiuser
4 reserved for local use, default is normal/full multiuser
5 multiuser with a display manager or equivalent
6 reboot
If I interpret the above correctly, enabling opensm in runlevel 4 should be fine on all Linux distributions ?
Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html