samba and lighttpd won't start automatically (v6.4) [solved]

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
BennyBubble
Posts: 8
Joined: Fri Mar 16, 2018 3:03 pm

samba and lighttpd won't start automatically (v6.4) [solved]

Post by BennyBubble »

Hi,

Recently I've installed dietpi on my rpi 2 b+, all works well, very happy :D :D !
However after installing samba server and lighttpd/mariadb (using dietpi-software), I noticed they won't start automatically.
After boot I first have to ssh into the rpi and start both services, after which both run flawlessy !

How (and were) can I set the way they start up ? I prefer both services start direclty after booting.

Any hints greatly appreciated !

-ben

Solution:
It turns out there is a delayed start voor dietpi-services, after a while they seems to be running.
Still didn't figure out how long after boot the services are running but they do after a while.
Last edited by BennyBubble on Thu Mar 22, 2018 1:32 pm, edited 1 time in total.
User avatar
Fourdee
Site Admin
Posts: 2787
Joined: Tue Feb 06, 2007 1:36 pm

Re: samba and lighttpd won't start automatically (v6.4)

Post by Fourdee »

BennyBubble wrote:Hi,

Recently I've installed dietpi on my rpi 2 b+, all works well, very happy :D :D !
However after installing samba server and lighttpd/mariadb (using dietpi-software), I noticed they won't start automatically.
After boot I first have to ssh into the rpi and start both services, after which both run flawlessy !

How (and were) can I set the way they start up ? I prefer both services start direclty after booting.

Any hints greatly appreciated !

-ben
Hi,

After reboot, please check service status results (paste results):

Code: Select all

dietpi-services status
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
BennyBubble
Posts: 8
Joined: Fri Mar 16, 2018 3:03 pm

Re: samba and lighttpd won't start automatically (v6.4)

Post by BennyBubble »

First command after boot :
root@myPi:~# dietpi-services status
[ OK ] Root access verified.

DietPi-Services
─────────────────────────────────────────────────────
Mode: status

[ INFO ] DietPi-Services | cron inactive (dead)
[ INFO ] DietPi-Services | smbd inactive (dead)
[ INFO ] DietPi-Services | nmbd inactive (dead)
[ INFO ] DietPi-Services | lighttpd inactive (dead)
[ INFO ] DietPi-Services | php7.0-fpm inactive (dead)
[ INFO ] DietPi-Services | mysql inactive (dead)
[ OK ] DietPi-Services | dietpi-boot activating (start) since Fri 2018-03-16 21:19:22 GMT; 18h ago
[ INFO ] DietPi-Services | dietpi-postboot inactive (dead)
root@MyPi:~#
Any thoughts ?
BennyBubble
Posts: 8
Joined: Fri Mar 16, 2018 3:03 pm

Re: samba and lighttpd won't start automatically (v6.4)

Post by BennyBubble »

After dietpi-services start :
root@MyPi:~# dietpi-services start
[ OK ] Root access verified.

DietPi-Services
─────────────────────────────────────────────────────
Mode: start

[ OK ] DietPi-Services | start : cron
[ OK ] DietPi-Services | start : smbd
[ OK ] DietPi-Services | start : nmbd
[ OK ] DietPi-Services | start : lighttpd
[ OK ] DietPi-Services | start : php7.0-fpm
[ OK ] DietPi-Services | start : mysql
[ SUB1 ] DietPi-Process_tool > Apply
grep: /tmp/.dietpi-process_tool_ps_list: No such file or directory
grep: /tmp/.dietpi-process_tool_ps_list: No such file or directory
grep: /tmp/.dietpi-process_tool_ps_list: No such file or directory
grep: /tmp/.dietpi-process_tool_ps_list: No such file or directory
grep: /tmp/.dietpi-process_tool_ps_list: No such file or directory
grep: /tmp/.dietpi-process_tool_ps_list: No such file or directory
grep: /tmp/.dietpi-process_tool_ps_list: No such file or directory
grep: /tmp/.dietpi-process_tool_ps_list: No such file or directory
[ OK ] DietPi-Process Tool | Completed
rm: cannot remove '/tmp/.dietpi-services_installed': No such file or directory
root@MyPi:~#
I assume these services should start automatically but how ?

-ben
BennyBubble
Posts: 8
Joined: Fri Mar 16, 2018 3:03 pm

Re: samba and lighttpd won't start automatically (v6.4)

Post by BennyBubble »

Hi,
Still don't know how to setup dietpi so that all services start automatically, please help!
-ben
oldirtdog
Posts: 4
Joined: Mon Feb 18, 2019 4:47 pm

Re: samba and lighttpd won't start automatically (v6.4) [solved]

Post by oldirtdog »

I am having this same issue. basically, all of my services do not start after reboot... all show inactive (dead)... I can enable all and everything starts working just fine... I can probably fix it with a scheduled task, but I'd like to know what is actually going on...
User avatar
MichaIng
Site Admin
Posts: 2323
Joined: Sat Nov 18, 2017 6:21 pm

Re: samba and lighttpd won't start automatically (v6.4) [solved]

Post by MichaIng »

@oldirtdog
I believe it's due to a known bug in v6.21, resolved with v6.22 ETA this weekend.

Please try to resolve:

Code: Select all

sed -i '/After=/s/[[:blank:]]multi-user.target//' /etc/systemd/system/dietpi-postboot.service
systemctl daemon-reload
systemctl enable dietpi-postboot
Post Reply