mrin / domoticz-mirobot-plugin

Xiaomi Mi Robot Vacuum plugin for Domoticz
57 stars 28 forks source link

systemctl style startup script ? #36

Closed Tontze closed 3 years ago

Tontze commented 3 years ago

Hello ! I have aproblem with this old style startup scrip, it just wont run :/ Has someone done it using systemctl ?

● miio_server.service - LSB: MIIO Server Loaded: loaded (/etc/init.d/miio_server; generated) Active: failed (Result: exit-code) since Sun 2021-03-14 12:34:37 EET; 19s ago Docs: man:systemd-sysv-generator(8) Process: 541 ExecStart=/etc/init.d/miio_server start (code=exited, status=203/EXEC) CPU: 2ms I have quad checked all the paths, and i just dont find anything wrong with this. Manually executed serer start works as it should.

Im running debian 11

Tontze commented 3 years ago

Ok, found the problem. It had #!/bin/sh at the start of the script, #!/bin/bash seems to be working :)