Author |
Post |
|
#1 Fri Apr 15, 2011 09:38, 166 months ago.
|
Member
Registered: Apr 2011
Location: athens, Greece
|
Operating system name and version: centos 5 Version of smsd: 3.1.14 Smsd installed from: sources Name and model of a modem / phone: Interface: serial chkconfig still doesn't work in centos after the suggested fix. Correct fix is Regards
|
|
#2 Fri Apr 15, 2011 10:31, 166 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
I could add Description to the sms3 script in the package, but I'm not sure about the "chkconfig: 345 20 80". The script is "Debian/Ubuntu -style", and when quicly checking scripts in my /etc/init.d, only one had this chkconfig presented, and in the different place: #!/bin/bash # # kerneloops # # chkconfig: 345 90 88 # description: A tool that collects and submits kernel crash \ # signatures to the kerneloops.org website for use by the Linux \ # kernel developers. # processname: kerneloops # config: /etc/kerneloops.conf # ### BEGIN INIT INFO # Provides: kerneloops # Default-Start: 3 4 5 # Default-Stop: 0 1 2 6 # Required-Start: $local_fs $remote_fs $named $network $time $syslog # Required-Stop: $local_fs $remote_fs # Short-Description: Tool to automatically collect and submit kernel crash signatures # Description: A tool that collects and submits kernel crash # signatures to the kerneloops.org website for use by the Linux # kernel developers. ### END INIT INFO 'bash' Syntax Highlight powered by GeSHi Does the chkconfig work on Centos, if chkconfig: and description: are presented before the ### BEGIN INIT INFO line? In this case I could add those lines to the script.
|
|
#3 Fri Apr 15, 2011 10:37, 166 months ago.
|
Member
Registered: Apr 2011
Location: athens, Greece
Topic owner
|
for example #!/bin/sh # # bluetooth: Start/stop bluetooth services # # chkconfig: 2345 25 90 # description: Bluetooth services for service discovery, authentication, \ # Human Interface Devices, etc. #
so there is no reason NOT to work outside BEGIN INIT INFO (it does work inside BEGIN INIT for sure) Now if there is any possibility to brake other OS, then outside of begin init should be fine too.
Regards
|
|
#4 Fri Apr 15, 2011 10:59, 166 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Okay, I change the script in the next version like this: #! /bin/sh # This script can be used to start/stop smsd # as a daemon in Linux, Solaris, Cygwin, FreeBSD # and MAC OS X Terminal window (Darwin). # This script is to be used with smsd version >= 3.0.3.
# chkconfig: 2345 20 80 # description: Sms server daemon
### BEGIN INIT INFO # Provides: smstools # Required-Start: $syslog # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: starts smstools ### END INIT INFO 'bash' Syntax Highlight powered by GeSHi
|
|
#5 Fri Apr 15, 2011 11:15, 166 months ago.
|
Member
Registered: Apr 2011
Location: athens, Greece
Topic owner
|
Yes, just confirmed it works And server started automatically after reboot
|