I’m know SUSE not so deeply so can’t manage following trouble.
There is openSUSE 12.2
I install GAMMU-SMSD programm. It works well.
I want that this programm will run automatically during OS booting.
My steps:
Run chkconfig --add gammu-smsd
Then check in /etc/init.d/rc5.d (defalt runlevel is 5) and see
lrwxrwxrwx 1 root root 13 февр. 15 22:33 S10gammu-smsd → …/gammu-smsd
lrwxrwxrwx 1 root root 13 февр. 15 22:33 K01gammu-smsd → …/gammu-smsd
then reboot and find out that this service is not run
check /var/log/messages and find out:
Feb 15 22:35:53 linux-6i2j gammu-smsd[588]: Starting Gammu SMS Daemon gammu-smsd
Feb 15 22:35:53 linux-6i2j gammu-smsd[588]: /etc/init.d/gammu-smsd: line 84: start-stop-daemon: command not found
then check /etc/init.d/gammu-smsd line 84:
Function that starts the daemon/service
do_start()
{
# Return
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
** start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ #it’s line 84**
|| return 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON –
$DAEMON_ARGS
|| return 2
}
Here my limit of knowledge… I see that this file /etc/init.d/gammu-smsd is wrong, but don’t know how to repair it. It was created automatically.
Please help me to solve problem. Thank you.
We use systemd these days and not systemV so the old ways may not work. Have a look at my blog on how I got after.local to work, which you could add your file to or how I changed the dkms application into a systemd service.
Please confirm my doubt. Second way is better because script /etc/init.d/gammu-smsd is more complex and informative then my command in boot.local:
/usr/bin/gammu-smsd --config /etc/gammu-smsdrc --pid /var/run/gammu-smsd.pid --daemon
Actually boot.local works, but is about the same as my example for after.local due to how systemd works, but the real test is does your application work or not work when you move its startup somewhere else such as boot.local or after.local?
On 2013-02-17 09:36, berleo wrote:
>
> robin_listas;2527758 Wrote:
>> On 2013-02-16 17:16, berleo wrote:
>> Where did you get that gammu? If it was from openSUSE, then please
>> report the issue in a bugzilla.
>>
> It’s from openSUSE.
> I’ll try to create bug-report, but I’m not sure - this bug is not
> relate to openSUSE itself.
It does. It relates to a package provided by openSUSE.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)