SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Thu Apr 18, 2024 14:10
SMSTools3 Community » Help and support Bottom

[changed in 3.1.15] chkconfig still rejected

  This topic is locked

Page:  1

Author Post
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

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.

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

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


Member
Registered:
Apr 2011
Location: athens, Greece
Topic owner
Yes, just confirmed it works


And server started automatically after reboot

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.