GAMMU_SMSD service can't start during booting

Hi

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:

  1. Run chkconfig --add gammu-smsd
  2. 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
  3. then reboot and find out that this service is not run
  4. 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
  5. 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.

systemd and using the after.local script in openSUSE 12.1/12.2: https://forums.opensuse.org/blogs/jdmcdaniel3/systemd-using-after-local-script-opensuse-12-1-71/

DKMS, systemd & Virtual Box - How to get Dynamic Kernel Module Support to work in openSUSE 12.1/12.2: https://forums.opensuse.org/blogs/jdmcdaniel3/dkms-systemd-how-get-dynamic-kernel-module-support-work-opensuse-12-1-100/

Thank You,

I use this way and service is runnig well.

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

Am I right?

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?

Thank You,

Now I use boot.local and programm is worked. So problem is solved - thank you for help.

I am happy to hear of your success then. Let us know if you need further assistance in using openSUSE.

Thank You,

On 2013-02-16 17:16, berleo wrote:
>
> Now I use boot.local and programm is worked. So problem is solved -
> thank you for help.

Where did you get that gammu? If it was from openSUSE, then please
report the issue in a bugzilla.

Even if it wasn’t from openSUSE, a bugzilla would help. Systemd people
say that everything should work as it did…


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

It’s from openSUSE.
I’ll try to create bug-report, but I’m not sure - this bug is not relate to openSUSE itself.

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)

I already created bug-report. So wait for response))