Playsmsd start on boot not working

I have installed playSMS 1.4.3 on Ubuntu server version 19.10 on my Raspberry Pi by following the instructions in Install playSMS 1.0 using install script.

It appears that the install went well and the program starts properly, however trying to get the start on boot (Step #5 in the above link) does not work for me.

I reboot my Raspberry Pi and playsmsd does not auto start. I have to manually start the services.

I was able to locate rc.local in both the /etc and /etc/init.d directories. This file does not exist in /etc/rc.d/init.d

Any clues as to why this may not work for me would be greatly appreciated!

Hi,

I forgot how to install in Raspberry, the startup part, but it should be like any other new Debian init, rc.local is deprecated. Check this: https://unix.stackexchange.com/questions/471824/what-is-the-correct-substitute-for-rc-local-in-systemd-instead-of-re-creating-rc and this: https://www.raspberrypi.org/documentation/linux/usage/systemd.md

Btw, use this manual for 1.4.3, check the difference with old 1.0 manual: https://github.com/antonraharja/playSMS/blob/2182f6dbdac66d007762c0c22bf68ee0272f1eac/INSTALL.md (about the same, but starting 1.4.3 the focus is not to run playsmsd as root)

anton

Thanks for the response. I am noticing that the issue may be permissions based? When I did the install, the install.conf DBUSER was “root” (DBUSER=“root”). When I run the ./install-playsms.sh command, the services start normally.

INSTALL DATA:

MySQL username = root
MySQL password = **********
MySQL database = playsms
MySQL host = localhost
MySQL port = 3306

Web server user = www-data
Web server group = www-data

playSMS source path = /usr/local/src/playsms-1.4.3

playSMS web path = /var/www/html/playsms
playSMS lib path = /var/lib/playsms
playSMS bin path = /usr/local/bin
playSMS log path = /var/log/playsms

playSMS conf path = /etc

However, if we change the DBUSER to “playsms” (DBUSER=“playsms”), the services fail to start.

INSTALL DATA:

MySQL username = playsms
MySQL password = **********
MySQL database = playsms
MySQL host = localhost
MySQL port = 3306

Web server user = www-data
Web server group = www-data

playSMS source path = /usr/local/src/playsms-1.4.3

playSMS web path = /var/www/html/playsms
playSMS lib path = /var/lib/playsms
playSMS bin path = /usr/local/bin
playSMS log path = /var/log/playsms

playSMS conf path = /etc

Do you have any instructions on where I can set up the permissions through MySQL? I have already tried granting all privileges to this user by running:

GRANT ALL PRIVILEGES ON *.playsms TO ‘playsms’@‘localhost’;

Am I missing something? Thanks in advance, and apoligies in advance since I am picking up Ubuntu/Linux for the very first time.

Hi,

Try reading MySQL part in this article: https://playsms.org/2018/06/26/playsms-1-4-2-on-ubuntu-18-04/

anton